[SCEV] Remove an unnecessary GEP type check
authorNikita Popov <npopov@redhat.com>
Tue, 25 Jan 2022 11:55:02 +0000 (12:55 +0100)
committerNikita Popov <npopov@redhat.com>
Tue, 25 Jan 2022 11:56:46 +0000 (12:56 +0100)
commit3e2ae92d3f062f47b7cc8103e9a6c15b815d9018
treedec111d4079339b55892ad08b1ff26c5a414c493
parent15e2be291f7fc8a694f796dd494e4f14d7f5a982
[SCEV] Remove an unnecessary GEP type check

The code already checked that the addrec step size and type alloc
size are the same. The actual pointer element type is irrelevant
here.
llvm/lib/Analysis/ScalarEvolution.cpp