summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/X86/X86FastISel.cpp
diff options
context:
space:
mode:
authorNick Lewycky <nicholas@mxc.ca>2011-08-02 00:40:16 +0000
committerNick Lewycky <nicholas@mxc.ca>2011-08-02 00:40:16 +0000
commita530a4d92563fc15097b9fa66aa03aa9e41137fc (patch)
treef4340ce1dccb253fad5b415e6de8e46b3f92f7a2 /llvm/lib/Target/X86/X86FastISel.cpp
parent8e2b75dbad1351446435edaa982052ce4096518e (diff)
downloadbcm5719-llvm-a530a4d92563fc15097b9fa66aa03aa9e41137fc.tar.gz
bcm5719-llvm-a530a4d92563fc15097b9fa66aa03aa9e41137fc.zip
Bail from FastISel when we encounter a volatile memset intrinsic. Patch by Ivan
Krasin! llvm-svn: 136663
Diffstat (limited to 'llvm/lib/Target/X86/X86FastISel.cpp')
-rw-r--r--llvm/lib/Target/X86/X86FastISel.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp
index 24f4437ec7d..f5db6d28a24 100644
--- a/llvm/lib/Target/X86/X86FastISel.cpp
+++ b/llvm/lib/Target/X86/X86FastISel.cpp
@@ -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;
OpenPOWER on IntegriCloud