Skip to content

Commit 4aff721

Browse files
committed
clang-format
1 parent ae82b9b commit 4aff721

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

llvm/lib/Target/RISCV/GISel/RISCVLegalizerInfo.cpp

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -186,13 +186,10 @@ RISCVLegalizerInfo::RISCVLegalizerInfo(const RISCVSubtarget &ST)
186186
}
187187

188188
auto &ConstantActions = getActionDefinitionsBuilder(G_CONSTANT);
189-
ConstantActions
190-
.legalFor({s32, p0})
189+
ConstantActions.legalFor({s32, p0});
191190
if (ST.is64Bit())
192191
ConstantActions.customFor({s64});
193-
ConstantActions
194-
.widenScalarToNextPow2(0)
195-
.clampScalar(0, s32, sXLen);
192+
ConstantActions.widenScalarToNextPow2(0).clampScalar(0, s32, sXLen);
196193

197194
getActionDefinitionsBuilder(G_IMPLICIT_DEF)
198195
.legalFor({s32, sXLen, p0})
@@ -467,7 +464,7 @@ bool RISCVLegalizerInfo::shouldBeInConstantPool(APInt APImm,
467464
bool ShouldOptForSize) const {
468465
unsigned BitWidth = APImm.getBitWidth();
469466
assert(BitWidth == 32 || BitWidth == 64);
470-
uint64_t Imm = APImm.getSExtValue();
467+
int64_t Imm = APImm.getSExtValue();
471468
// All simm32 constants should be handled by isel.
472469
// NOTE: The getMaxBuildIntsCost call below should return a value >= 2 making
473470
// this check redundant, but small immediates are common so this check

0 commit comments

Comments
 (0)