File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
llvm/lib/Transforms/InstCombine Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff 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.
You can’t perform that action at this time.
0 commit comments