[llvm-commits] [llvm] r110489 - /llvm/trunk/lib/Transforms/Scalar/GVN.cpp
Owen Anderson
resistor at mac.com
Fri Aug 6 17:20:35 PDT 2010
Author: resistor
Date: Fri Aug 6 19:20:35 2010
New Revision: 110489
URL: http://llvm.org/viewvc/llvm-project?rev=110489&view=rev
Log:
Don't attempt the PRE inline asm calls, since we don't value number them yet. Fixes PR7835.
Modified:
llvm/trunk/lib/Transforms/Scalar/GVN.cpp
Modified: llvm/trunk/lib/Transforms/Scalar/GVN.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/Scalar/GVN.cpp?rev=110489&r1=110488&r2=110489&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/Scalar/GVN.cpp (original)
+++ llvm/trunk/lib/Transforms/Scalar/GVN.cpp Fri Aug 6 19:20:35 2010
@@ -2111,6 +2111,11 @@
CurInst->mayReadFromMemory() || CurInst->mayHaveSideEffects() ||
isa<DbgInfoIntrinsic>(CurInst))
continue;
+
+ // We don't currently value number ANY inline asm calls.
+ if (CallInst *CallI = dyn_cast<CallInst>(CurInst))
+ if (CallI->isInlineAsm())
+ continue;
uint32_t ValNo = VN.lookup(CurInst);
More information about the llvm-commits
mailing list