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:
87d696a
)
Do not force asm's to be chained if they don't touch
author
Dale Johannesen
<dalej@apple.com>
Tue, 14 Apr 2009 00:56:56 +0000
(
00:56
+0000)
committer
Dale Johannesen
<dalej@apple.com>
Tue, 14 Apr 2009 00:56:56 +0000
(
00:56
+0000)
memory and aren't volatile. This was interfering with
good scheduling.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69008
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
index 0fc5cb13cf4077744fd72b531ea03873effaaaee..96fae4d3eec05af9342808d115ac9761d228cfec 100644
(file)
--- a/
lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
+++ b/
lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
@@
-5439,6
+5439,9
@@
void SelectionDAGLowering::visitInlineAsm(CallSite CS) {
}
setValue(CS.getInstruction(), Val);
+ // Don't need to use this as a chain in this case.
+ if (!IA->hasSideEffects() && !hasMemory && IndirectStoresToEmit.empty())
+ return;
}
std::vector<std::pair<SDValue, Value*> > StoresToEmit;