mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-08 06:32:24 +00:00
Move variable down to use
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@219867 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
4976a53fb7
commit
bb402de0c9
@ -2160,10 +2160,6 @@ SDValue AMDGPUTargetLowering::PerformDAGCombine(SDNode *N,
|
||||
WidthVal);
|
||||
}
|
||||
|
||||
APInt Demanded = APInt::getBitsSet(32,
|
||||
OffsetVal,
|
||||
OffsetVal + WidthVal);
|
||||
|
||||
if ((OffsetVal + WidthVal) >= 32) {
|
||||
SDValue ShiftVal = DAG.getConstant(OffsetVal, MVT::i32);
|
||||
return DAG.getNode(Signed ? ISD::SRA : ISD::SRL, DL, MVT::i32,
|
||||
@ -2171,6 +2167,10 @@ SDValue AMDGPUTargetLowering::PerformDAGCombine(SDNode *N,
|
||||
}
|
||||
|
||||
if (BitsFrom.hasOneUse()) {
|
||||
APInt Demanded = APInt::getBitsSet(32,
|
||||
OffsetVal,
|
||||
OffsetVal + WidthVal);
|
||||
|
||||
APInt KnownZero, KnownOne;
|
||||
TargetLowering::TargetLoweringOpt TLO(DAG, !DCI.isBeforeLegalize(),
|
||||
!DCI.isBeforeLegalizeOps());
|
||||
|
Loading…
x
Reference in New Issue
Block a user