Skip to content

Commit e48bf5f

Browse files
author
git apple-llvm automerger
committed
Merge commit '9ba438d32175' from llvm.org/main into next
2 parents 691d8a8 + 9ba438d commit e48bf5f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/RISCV/MCTargetDesc/RISCVMatInt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ static void generateInstSeqImpl(int64_t Val, const MCSubtargetInfo &STI,
134134
}
135135

136136
// Try to use SLLI_UW for Val when it is uint32 but not int32.
137-
if (isUInt<32>((uint64_t)Val) && !isInt<32>((uint64_t)Val) &&
137+
if (isUInt<32>(Val) && !isInt<32>(Val) &&
138138
STI.hasFeature(RISCV::FeatureStdExtZba)) {
139139
// Use LUI+ADDI or LUI to compose, then clear the upper 32 bits with
140140
// SLLI_UW.

0 commit comments

Comments
 (0)