[llvm] [LV] Rewrite UDiv A, B -> UDiv A, UMax(B, 1) in trip counts if needed. (PR #92177)

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Fri Sep 6 13:18:27 PDT 2024


fhahn wrote:

> What's the status here?

Thanks for the reminder. Just updated the PR to introduce a SafeUDivMode to SCEVExpander and plug through the information if it is needed to the point where the trip count gets expanded. Not sure if there's  a better way to ensure the divisor is frozen when needed

https://github.com/llvm/llvm-project/pull/92177


More information about the llvm-commits mailing list