projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f615f8
)
Don't attempt the PRE inline asm calls, since we don't value number them yet. Fixes...
author
Owen Anderson
<resistor@mac.com>
Sat, 7 Aug 2010 00:20:35 +0000
(
00:20
+0000)
committer
Owen Anderson
<resistor@mac.com>
Sat, 7 Aug 2010 00:20:35 +0000
(
00:20
+0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@110489
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/Scalar/GVN.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/Scalar/GVN.cpp
b/lib/Transforms/Scalar/GVN.cpp
index 42afd6d5dbca3e1c49359ef1dd755a990b99f710..81cbc4e2127d2cd7dcbc1530fa9c4239ef5b0013 100644
(file)
--- 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);