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 | 03986077144c2c88b413e3891ee8ee202d56605c (patch) | |
| tree | 4ab8dc0bf27186465377e03f5513737c3bf480b0 | |
| parent | b650ad0861a51fb2b47def51f43f47b5be250217 (diff) | |
| download | bcm5719-llvm-03986077144c2c88b413e3891ee8ee202d56605c.tar.gz bcm5719-llvm-03986077144c2c88b413e3891ee8ee202d56605c.zip | |
Don't attempt the PRE inline asm calls, since we don't value number them yet. Fixes PR7835.
llvm-svn: 110489
| -rw-r--r-- | llvm/lib/Transforms/Scalar/GVN.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Scalar/GVN.cpp b/llvm/lib/Transforms/Scalar/GVN.cpp index 42afd6d5dbc..81cbc4e2127 100644 --- a/llvm/lib/Transforms/Scalar/GVN.cpp +++ b/llvm/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); |

