[llvm] [VPlan] Delete the redundant overflow check for DataAndControlFlowWithoutRuntimeCheck (PR #79825)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 19 19:38:15 PST 2024
vfdff wrote:
Now we bring in the runtime check of overflow to make sure **num-vf** is not a negative number. so if we place the update of iv before the **while i< num-vf** as gcc, then the loop bound **num** doesn't need subtract VF in advance.
```
llvm.vector:
***loop body
lane.mask = while i< num-vf
i = i+vf
bt llvm.vector
```
```
gcc.vector:
***loop body
i = i+vf
lane.mask = while i< num
bt gcc.vector
```
https://github.com/llvm/llvm-project/pull/79825
More information about the llvm-commits
mailing list