[llvm] [LV] Use ICMP_UGE for BranchOnCount when VF is scalable (PR #102575)

Pengcheng Wang via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 29 06:58:20 PDT 2024


wangpc-pp wrote:

Gentle ping. @fhahn 
The key point here is:
IIUC, there is a theoretical problem, if the step of `SCEVAddRec` is a `vscale`, then it is a range. So, it is almost impossible to judge if a range is equal to a fixed trip count number. This is the drawback of using `ICMP_NE` and `ICMP_EQ`.

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


More information about the llvm-commits mailing list