1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-25 04:02:41 +01:00

make the 'fp return in ST(0)' optimization smart enough to

look through token factor

llvm-svn: 46053
This commit is contained in:
Chris Lattner 2008-01-16 05:53:06 +00:00
parent d9f29a1e3e
commit 1819f31640

View File

@ -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 // 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. // back to the stack, only to reload it: just replace the scalar-sse load.
if (ISD::isNON_EXTLoad(Value.Val) && if (ISD::isNON_EXTLoad(Value.Val) &&
(Chain == Value.getValue(1) || Chain == Value.getOperand(0))) { Chain.reachesChainWithoutSideEffects(Value.getOperand(0))) {
Chain = Value.getOperand(0); Chain = Value.getOperand(0);
MemLoc = Value.getOperand(1); MemLoc = Value.getOperand(1);
} else { } else {