Skip to content

Commit 00d2e6e

Browse files
committed
NFC, rename Trunc to TruncSrc
1 parent 4b636bf commit 00d2e6e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1529,11 +1529,11 @@ Instruction *InstCombinerImpl::visitSExt(SExtInst &Sext) {
15291529

15301530
// Try to extend the entire expression tree to the wide destination type.
15311531
bool shouldExtendExpression = true;
1532-
Value *Trunc = nullptr;
1532+
Value *TruncSrc = nullptr;
15331533
// It is not desirable to extend expression in the trunc + sext pattern when
15341534
// destination type is narrower than original (pre-trunc) type.
1535-
if (match(Src, m_Trunc(m_Value(Trunc))))
1536-
if (Trunc->getType()->getScalarSizeInBits() > DestBitSize)
1535+
if (match(Src, m_Trunc(m_Value(TruncSrc))))
1536+
if (TruncSrc->getType()->getScalarSizeInBits() > DestBitSize)
15371537
shouldExtendExpression = false;
15381538
if (shouldExtendExpression && shouldChangeType(SrcTy, DestTy) &&
15391539
canEvaluateSExtd(Src, DestTy)) {
@@ -1556,7 +1556,7 @@ Instruction *InstCombinerImpl::visitSExt(SExtInst &Sext) {
15561556
ShAmt);
15571557
}
15581558

1559-
Value *X = Trunc;
1559+
Value *X = TruncSrc;
15601560
if (X) {
15611561
// If the input has more sign bits than bits truncated, then convert
15621562
// directly to final type.

0 commit comments

Comments
 (0)