File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
llvm/lib/Transforms/Utils Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -339,13 +339,13 @@ bool SimplifyIndvar::forceEqualityForICmp(ICmpInst *ICmp,
339339 return false ;
340340 }
341341
342- unsigned IVBitWigth = IVStep->getAPInt ().getBitWidth ();
343- unsigned CountBitWigth = SameIterCount->getAPInt ().getBitWidth ();
342+ unsigned IVBitWidth = IVStep->getAPInt ().getBitWidth ();
343+ unsigned CountBitWidth = SameIterCount->getAPInt ().getBitWidth ();
344344 APInt SameIterCountA = SameIterCount->getAPInt ();
345- if (IVBitWigth < CountBitWigth ) {
346- SameIterCountA = SameIterCountA.trunc (IVBitWigth );
347- } else if (IVBitWigth > CountBitWigth ) {
348- SameIterCountA = SameIterCountA.zext (IVBitWigth );
345+ if (IVBitWidth < CountBitWidth ) {
346+ SameIterCountA = SameIterCountA.trunc (IVBitWidth );
347+ } else if (IVBitWidth > CountBitWidth ) {
348+ SameIterCountA = SameIterCountA.zext (IVBitWidth );
349349 }
350350 NewBoundA = IVStart->getAPInt () + (IVStep->getAPInt () * SameIterCountA);
351351 NewPredicate = ExitIfTrue ? ICmpInst::ICMP_EQ : ICmpInst::ICMP_NE;
You can’t perform that action at this time.
0 commit comments