llvm-project
53e7443e - [LSR] Don't count conditional loads/store as enabling pre/post-index (#159573)

Commit
89 days ago
[LSR] Don't count conditional loads/store as enabling pre/post-index (#159573) When a load/store is conditionally executed in a loop it isn't a candidate for pre/post-index addressing, as the increment of the address would only happen on those loop iterations where the load/store is executed. Detect this and only discount the AddRec cost when the load/store is unconditional.
Parents
Loading