Displaying 1 result from an estimated 1 matches for "scalarevolution_8cpp_source".
2017 Jun 17
5
LoopVectorize fails to vectorize loops with induction variables with PtrToInt/IntToPtr conversions
...r CFG
> LV: Not vectorizing: Cannot prove legality.
> [...]
The issue seems to be that the phi node "%16" can't be deduced as an
induction variable. If we take a closer look, the cause seems to be in
ScalarEvolution, in the createSCEV function
(http://llvm.org/docs/doxygen/html/ScalarEvolution_8cpp_source.html#l04770)
:
> // It's tempting to handle inttoptr and ptrtoint as no-ops, however this can
> // lead to pointer expressions which cannot safely be expanded to GEPs,
> // because ScalarEvolution doesn't respect the GEP aliasing rules when
> // simplifying integer expressi...