[llvm] r372159 - [X86] Use APInt::operator<<= and APInt::lshrInPlace. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 17 11:19:06 PDT 2019
Author: ctopper
Date: Tue Sep 17 11:19:06 2019
New Revision: 372159
URL: http://llvm.org/viewvc/llvm-project?rev=372159&view=rev
Log:
[X86] Use APInt::operator<<= and APInt::lshrInPlace. NFC
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=372159&r1=372158&r2=372159&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Tue Sep 17 11:19:06 2019
@@ -34661,8 +34661,8 @@ bool X86TargetLowering::SimplifyDemanded
Depth + 1))
return true;
- KnownUndef = KnownUndef.shl(ShiftAmt);
- KnownZero = KnownZero.shl(ShiftAmt);
+ KnownUndef <<= ShiftAmt;
+ KnownZero <<= ShiftAmt;
KnownZero.setLowBits(ShiftAmt);
break;
}
@@ -34700,8 +34700,8 @@ bool X86TargetLowering::SimplifyDemanded
Depth + 1))
return true;
- KnownUndef = KnownUndef.lshr(ShiftAmt);
- KnownZero = KnownZero.lshr(ShiftAmt);
+ KnownUndef.lshrInPlace(ShiftAmt);
+ KnownZero.lshrInPlace(ShiftAmt);
KnownZero.setHighBits(ShiftAmt);
break;
}
More information about the llvm-commits
mailing list