Skip to content

Commit 2dac3dc

Browse files
committed
Move constant to right
Signed-off-by: John Lu <John.Lu@amd.com>
1 parent 5130b1a commit 2dac3dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AMDGPU/AMDGPUISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4167,7 +4167,7 @@ SDValue AMDGPUTargetLowering::performSraCombine(SDNode *N,
41674167

41684168
// For C >= 32
41694169
// (sra i64:x, C) -> build_pair (sra hi_32(x), C - 32), (sra hi_32(x), 31)
4170-
if (32 <= RHSVal) {
4170+
if (RHSVal >= 32) {
41714171
SDValue Hi = getHiHalf64(N->getOperand(0), DAG);
41724172
Hi = DAG.getFreeze(Hi);
41734173
SDValue HiShift = DAG.getNode(ISD::SRA, SL, MVT::i32, Hi,

0 commit comments

Comments
 (0)