[SCEV] Reuse Accum variable when handling GEP flags
authorNikita Popov <npopov@redhat.com>
Tue, 2 May 2023 09:00:27 +0000 (11:00 +0200)
committerNikita Popov <npopov@redhat.com>
Tue, 2 May 2023 09:03:38 +0000 (11:03 +0200)
commit371612500afa4ffcdd411f585a427edb5cd037f7
tree844358c40f98ea3de169ce87bdcbd40b52fc6fa6
parent1aa36da15369678d94add0f64809b11f95795efd
[SCEV] Reuse Accum variable when handling GEP flags

The GEP minus the base pointer (which is the pre-inc addrec) is
exactly the Accum value that was already calculated.
llvm/lib/Analysis/ScalarEvolution.cpp