Expand the capabilities of the code for computing how many peels are
needed to make phis determined. A cast gets the peel count for the
value being casted while a binary op gets the maximum of the operands.
Details
Details
- Reviewers
mkazantsev - Group Reviewers
Restricted Project - Commits
- rG2b6683fd5f74: Expand loop peeling phi computation to handle binary ops and casts
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Transforms/Utils/LoopPeel.cpp | ||
---|---|---|
237 | I think these asserts are not needed since BinaryOp and CmpInst will always have 2 operands. Same for the assert below with the cast instruction. |
I think these asserts are not needed since BinaryOp and CmpInst will always have 2 operands. Same for the assert below with the cast instruction.