summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-01-16 05:53:06 +0000
committerChris Lattner <sabre@nondot.org>2008-01-16 05:53:06 +0000
commitea001f1db7c78d469a0e6adec539d7e1b0638e65 (patch)
tree78d8740e48b24a691cf474a56f74ceb2d106a237 /llvm/lib/Target
parentde5c74f18e249f918ca8e428c8bf287d9fb9162c (diff)
downloadbcm5719-llvm-ea001f1db7c78d469a0e6adec539d7e1b0638e65.tar.gz
bcm5719-llvm-ea001f1db7c78d469a0e6adec539d7e1b0638e65.zip
make the 'fp return in ST(0)' optimization smart enough to
look through token factor llvm-svn: 46053
Diffstat (limited to 'llvm/lib/Target')
-rw-r--r--llvm/lib/Target/X86/X86ISelLowering.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index be826533e15..eb8e5e38320 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -767,7 +767,7 @@ SDOperand X86TargetLowering::LowerRET(SDOperand Op, SelectionDAG &DAG) {
// If this is a load into a scalarsse value, don't store the loaded value
// back to the stack, only to reload it: just replace the scalar-sse load.
if (ISD::isNON_EXTLoad(Value.Val) &&
- (Chain == Value.getValue(1) || Chain == Value.getOperand(0))) {
+ Chain.reachesChainWithoutSideEffects(Value.getOperand(0))) {
Chain = Value.getOperand(0);
MemLoc = Value.getOperand(1);
} else {
OpenPOWER on IntegriCloud