[indvars] Extend canonicalizeExitConditions to inverted operands
authorPhilip Reames <listmail@philipreames.com>
Thu, 4 Nov 2021 21:19:24 +0000 (14:19 -0700)
committerPhilip Reames <listmail@philipreames.com>
Thu, 4 Nov 2021 21:20:37 +0000 (14:20 -0700)
commit453fdebd48d13c8725d245a4fe1745101e51eebb
tree695c6f636cee9b9015f7d178059ed2d62630e8ca
parenteb0fa8bfa356d49198f98b878b004bce59232bb0
[indvars] Extend canonicalizeExitConditions to inverted operands

As discussed in the original reviews, but done in a follow on.
llvm/lib/Transforms/Scalar/IndVarSimplify.cpp
llvm/test/Transforms/IndVarSimplify/finite-exit-comparisons.ll