diff options
author | Dale Johannesen <dalej@apple.com> | 2009-04-14 00:56:56 +0000 |
---|---|---|
committer | Dale Johannesen <dalej@apple.com> | 2009-04-14 00:56:56 +0000 |
commit | 83593f41679fd037f59bbff143e649b0aa63c4fd (patch) | |
tree | 475e85237a39eb904dbfa5f80a9f2900d1ce7cdb /llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp | |
parent | 323827e8d053ec349e4e1e14ee1ce0c2ac71eae8 (diff) | |
download | bcm5719-llvm-83593f41679fd037f59bbff143e649b0aa63c4fd.tar.gz bcm5719-llvm-83593f41679fd037f59bbff143e649b0aa63c4fd.zip |
Do not force asm's to be chained if they don't touch
memory and aren't volatile. This was interfering with
good scheduling.
llvm-svn: 69008
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp')
-rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp index 0fc5cb13cf4..96fae4d3eec 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuild.cpp +++ b/llvm/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; |