[llvm] [Transforms][Utils] Add LoopSplitUtils for iteration-space loop splitting (PR #205995)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Fri Jul 17 09:48:22 PDT 2026
================
----------------
artagnon wrote:
```suggestion
Value *LoopSplitUtils::getPartitionValue(Value *V,
unsigned PartitionIndex) const {
assert(PartitionIndex < getNumPartitions() && "partition index out of range");
// Partition 0 reuses the original loop: every value maps to itself.
if (PartitionIndex == 0)
return V;
```
Would be good to avoid the const_cast?
https://github.com/llvm/llvm-project/pull/205995
More information about the llvm-commits
mailing list