llvm-project
044b5283 - [LAA] Perform checks for no-wrap separately from getPtrStride. (#126971)

Commit
227 days ago
[LAA] Perform checks for no-wrap separately from getPtrStride. (#126971) Reorganize the code in isNoWrap to perform the no-wrap checks without relying on getPtrStride directly. getPtrStride now uses isNoWrap. The new structure allows deriving no-wrap in more cases in LAA, because there are some cases where getPtrStride bails out early because it cannot return a constant stride, but we can still prove no-wrap for the pointer. An example are AddRecs with non-ConstantInt strides with inbound GEPs, in the improved test cases. This enables vectorization with runtime checks in a few more cases. PR: https://github.com/llvm/llvm-project/pull/126971
Author
Parents
Loading