There's no need to require the start value to come directly from the loop predecessor.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp | ||
---|---|---|
6714 | The bool return value can be dropped -- check nullptr return instead. |
llvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp | ||
---|---|---|
6714 | I plan to do this in a followup NFC. There's a bunch of other simplification that follows, and some of the naming could stand cleaned up too. |
llvm/test/Transforms/LoopStrengthReduce/lsr-term-fold.ll | ||
---|---|---|
154 | I actually hadn't noticed. But yes, that's one of the issued I'd called out on the original review. :) |
The bool return value can be dropped -- check nullptr return instead.