Skip to content

Commit 001f07d

Browse files
committed
shouldExtendExpression -> ShouldExtendExpression
1 parent 00d2e6e commit 001f07d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Transforms/InstCombine/InstCombineCasts.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1528,14 +1528,14 @@ Instruction *InstCombinerImpl::visitSExt(SExtInst &Sext) {
15281528
}
15291529

15301530
// Try to extend the entire expression tree to the wide destination type.
1531-
bool shouldExtendExpression = true;
1531+
bool ShouldExtendExpression = true;
15321532
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.
15351535
if (match(Src, m_Trunc(m_Value(TruncSrc))))
15361536
if (TruncSrc->getType()->getScalarSizeInBits() > DestBitSize)
1537-
shouldExtendExpression = false;
1538-
if (shouldExtendExpression && shouldChangeType(SrcTy, DestTy) &&
1537+
ShouldExtendExpression = false;
1538+
if (ShouldExtendExpression && shouldChangeType(SrcTy, DestTy) &&
15391539
canEvaluateSExtd(Src, DestTy)) {
15401540
// Okay, we can transform this! Insert the new expression now.
15411541
LLVM_DEBUG(

0 commit comments

Comments
 (0)