diff options
author | Owen Anderson <resistor@mac.com> | 2010-08-07 00:20:35 +0000 |
---|---|---|
committer | Owen Anderson <resistor@mac.com> | 2010-08-07 00:20:35 +0000 |
commit | 5015b3417fcf5b415fa9a1e5b111ea6f8e96fbfa (patch) | |
tree | dd075a361386a67eb57886e8515b8dda7e8e43ab /lib/Transforms | |
parent | 6f615f8d48097c44524b73697a8d4a5438feb8d1 (diff) |
Don't attempt the PRE inline asm calls, since we don't value number them yet. Fixes PR7835.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110489 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms')
-rw-r--r-- | lib/Transforms/Scalar/GVN.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Transforms/Scalar/GVN.cpp b/lib/Transforms/Scalar/GVN.cpp index 42afd6d5db..81cbc4e212 100644 --- a/lib/Transforms/Scalar/GVN.cpp +++ b/lib/Transforms/Scalar/GVN.cpp @@ -2111,6 +2111,11 @@ bool GVN::performPRE(Function &F) { 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); |