mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-02-02 18:31:54 +00:00
isNonImmUse is replaced by IsFoldableBy
llvm-svn: 29365
This commit is contained in:
parent
bee251acdd
commit
6a126e3adb
@ -640,7 +640,7 @@ bool X86DAGToDAGISel::TryFoldLoad(SDOperand P, SDOperand N,
|
||||
if (N.getOpcode() == ISD::LOAD &&
|
||||
N.hasOneUse() &&
|
||||
!CodeGenMap.count(N.getValue(0)) &&
|
||||
(P.getNumOperands() == 1 || !isNonImmUse(P.Val, N.Val)))
|
||||
!IsFoldableBy(N.Val, P.Val))
|
||||
return SelectAddr(N.getOperand(1), Base, Scale, Index, Disp);
|
||||
return false;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user