diff options
author | Chris Lattner <sabre@nondot.org> | 2008-01-16 05:53:06 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2008-01-16 05:53:06 +0000 |
commit | 142fb3fee8ebdcf5a501f6fc7d4dfe909e9c478e (patch) | |
tree | 18e5dbd74f0564f3a174aec5587cf9405ae48fd3 | |
parent | b4a6eaa75b0069756045555de621c9616d1bcac5 (diff) |
make the 'fp return in ST(0)' optimization smart enough to
look through token factor
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46053 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | lib/Target/X86/X86ISelLowering.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index be826533e1..eb8e5e3832 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/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 { |