[NFC][IRCE] Check that Index is AddRec in the parseRangeCheckICmp
authorAleksandr Popov <a.popov.tmb@gmail.com>
Mon, 3 Jul 2023 04:48:13 +0000 (06:48 +0200)
committerAleksandr Popov <a.popov.tmb@gmail.com>
Mon, 3 Jul 2023 08:02:42 +0000 (10:02 +0200)
commit69f99f5308edf7dcb0cd688d7028733088305946
treeda29299146e185a8d7001a0715563280464ac5f0
parent8a25dc3787fe2f1ad04565aef666b28884116f3f
[NFC][IRCE] Check that Index is AddRec in the parseRangeCheckICmp

Next step of the preparatory refactoring for the upcoming support of
new range check form to parse.

Previous one: https://reviews.llvm.org/D154156

With this change we avoid meaningless parsing after realizing that Index
is not AddRec

Reviewed By: skatkov
Differential Revision: https://reviews.llvm.org/D154158
llvm/lib/Transforms/Scalar/InductiveRangeCheckElimination.cpp