mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-21 06:30:16 +00:00
Bail from FastISel when we encounter a volatile memset intrinsic. Patch by Ivan
Krasin! git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136663 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
cf6039548b
commit
3207c9a440
@ -1365,6 +1365,9 @@ bool X86FastISel::X86VisitIntrinsicCall(const IntrinsicInst &I) {
|
||||
case Intrinsic::memset: {
|
||||
const MemSetInst &MSI = cast<MemSetInst>(I);
|
||||
|
||||
if (MSI.isVolatile())
|
||||
return false;
|
||||
|
||||
unsigned SizeWidth = Subtarget->is64Bit() ? 64 : 32;
|
||||
if (!MSI.getLength()->getType()->isIntegerTy(SizeWidth))
|
||||
return false;
|
||||
|
Loading…
x
Reference in New Issue
Block a user