xiangzh1 wrote: > LoopUnroll supports upper bound unrolling. Why is it not working in this case? for example: #program unroll for (int I = 0; I < LoopCount; ++I) { // ConstNum > 1 if (Cond2) { break; } xxx loop body; }
After the branches fodling, the old loop condition "I < LoopCount" changed/disapeared, I think unroll can not make sure the "upper bound" https://github.com/llvm/llvm-project/pull/74268 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits