aboutsummaryrefslogtreecommitdiffstats
path: root/lib/CodeGen/SelectionDAG
diff options
context:
space:
mode:
authorDale Johannesen <dalej@apple.com>2009-04-14 00:56:56 +0000
committerDale Johannesen <dalej@apple.com>2009-04-14 00:56:56 +0000
commitec65a7d89b3c23183433c69f43220a93f3573551 (patch)
treed8e84b1ffecf1cb0ae78964b695db630f100df46 /lib/CodeGen/SelectionDAG
parent87d696a4d2f0b43a0e927bffb13ceb4c67cc0f3b (diff)
downloadexternal_llvm-ec65a7d89b3c23183433c69f43220a93f3573551.zip
external_llvm-ec65a7d89b3c23183433c69f43220a93f3573551.tar.gz
external_llvm-ec65a7d89b3c23183433c69f43220a93f3573551.tar.bz2
Do not force asm's to be chained if they don't touch
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
Diffstat (limited to 'lib/CodeGen/SelectionDAG')
-rw-r--r--lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp
index 0fc5cb1..96fae4d 100644
--- 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;