Skip to content

Commit 711134f

Browse files
[AArch64] Remove an unnecessary cast (NFC) (#155134)
Val is already of int64_t.
1 parent 1ab3042 commit 711134f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Target/AArch64/AArch64ISelLowering.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18309,7 +18309,7 @@ bool AArch64TargetLowering::shouldConvertConstantLoadToIntImm(const APInt &Imm,
1830918309
if (Val == 0 || AArch64_AM::isLogicalImmediate(Val, BitSize))
1831018310
return true;
1831118311

18312-
if ((int64_t)Val < 0)
18312+
if (Val < 0)
1831318313
Val = ~Val;
1831418314
if (BitSize == 32)
1831518315
Val &= (1LL << 32) - 1;

0 commit comments

Comments
 (0)