mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-30 20:34:21 +00:00
Return's chain should be matching either the chain produced by the
value or the chain going into the load. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25863 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
0ddc18047d
commit
760df29881
@ -1916,7 +1916,8 @@ SDOperand X86TargetLowering::LowerOperation(SDOperand Op, SelectionDAG &DAG) {
|
||||
SDOperand Chain = Op.getOperand(0);
|
||||
SDOperand Value = Op.getOperand(1);
|
||||
|
||||
if (Value.getOpcode() == ISD::LOAD && Chain == Value.getOperand(0)) {
|
||||
if (Value.getOpcode() == ISD::LOAD &&
|
||||
(Chain == Value.getValue(1) || Chain == Value.getOperand(0))) {
|
||||
Chain = Value.getOperand(0);
|
||||
MemLoc = Value.getOperand(1);
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user