[llvm-commits] [llvm] r136663 - /llvm/trunk/lib/Target/X86/X86FastISel.cpp
Nick Lewycky
nicholas at mxc.ca
Mon Aug 1 17:40:16 PDT 2011
Author: nicholas
Date: Mon Aug 1 19:40:16 2011
New Revision: 136663
URL: http://llvm.org/viewvc/llvm-project?rev=136663&view=rev
Log:
Bail from FastISel when we encounter a volatile memset intrinsic. Patch by Ivan
Krasin!
Modified:
llvm/trunk/lib/Target/X86/X86FastISel.cpp
Modified: llvm/trunk/lib/Target/X86/X86FastISel.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86FastISel.cpp?rev=136663&r1=136662&r2=136663&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86FastISel.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86FastISel.cpp Mon Aug 1 19:40:16 2011
@@ -1365,6 +1365,9 @@
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;
More information about the llvm-commits
mailing list