[IndVars] Don't widen pointers in WidenIV::getWideRecurrence
authorEli Friedman <efriedma@quicinc.com>
Mon, 12 Jul 2021 00:00:14 +0000 (17:00 -0700)
committerEli Friedman <efriedma@quicinc.com>
Mon, 12 Jul 2021 00:04:50 +0000 (17:04 -0700)
commit6144085c29b31e8e43122920a5bfba3d7b77e7ae
tree609a8c41f9472134d749c89d8f92773e59345db0
parent11a0d236503b9ed53a3b216181344a55a0212f95
[IndVars] Don't widen pointers in WidenIV::getWideRecurrence

It's not a reasonable transform, and calling getSignExtendExpr() on a
pointer hits an assertion.
llvm/lib/Transforms/Utils/SimplifyIndVar.cpp
llvm/test/Transforms/IndVarSimplify/signed-trip-count.ll