Skip to content

Commit

Permalink
Merge pull request #7312 from a7ehuo/fix-inductionvariableanalysis-pr
Browse files Browse the repository at this point in the history
Update differenceInAdditiveConstants as int64_t
  • Loading branch information
jdmpapin authored Apr 17, 2024
2 parents 2f492f4 + 568b22e commit 9083c82
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions compiler/optimizer/InductionVariable.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2175,9 +2175,9 @@ bool TR_LoopStrider::examineTreeForInductionVariableUse(TR::Block *loopInvariant
seenInductionVariableComputation = true;
examineChildren = false;

int32_t differenceInAdditiveConstants = 0;
int64_t differenceInAdditiveConstants = 0;
if (isAdditiveTermConst(index))
differenceInAdditiveConstants = (int32_t)(-1*getAdditiveTermConst(index));
differenceInAdditiveConstants = (-1*getAdditiveTermConst(index));

examineOpCodesForInductionVariableUse(node, parent, childNum, index, originalNode, replacingNode, linearTerm, mulTerm, newSymbolReference, loopInvariantBlock, pinningArrayPointer, differenceInAdditiveConstants, isInternalPointer, downcastNode, usingAladd);

Expand Down

0 comments on commit 9083c82

Please sign in to comment.