mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-09-24 23:28:41 +00:00
Add missing check to SETCC optimization.
PR17338. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191337 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -1185,6 +1185,7 @@ TargetLowering::SimplifySetCC(EVT VT, SDValue N0, SDValue N1,
|
||||
// the test is for equality or unsigned, and all 1 bits of the const are
|
||||
// in the same partial word, see if we can shorten the load.
|
||||
if (DCI.isBeforeLegalize() &&
|
||||
!ISD::isSignedIntSetCC(Cond) &&
|
||||
N0.getOpcode() == ISD::AND && C1 == 0 &&
|
||||
N0.getNode()->hasOneUse() &&
|
||||
isa<LoadSDNode>(N0.getOperand(0)) &&
|
||||
|
Reference in New Issue
Block a user