Phis that are present inside loop headers can only be Induction Phis
legally. This patch adds an assertion to isInductionPhi which checks for
the said legality and it also updates the docs of the said function to
reflect the given legality.
Details
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Analysis/IVDescriptors.cpp | ||
---|---|---|
1491 | Just return false? |
LGTM, thanks! IMO all callers in-tree ensure this invariant so the assert seems good to me.
llvm/lib/Analysis/IVDescriptors.cpp | ||
---|---|---|
1491 | AFAICT all callers in-tree ensure this invariant, so an assert seems good to me. Not sure if the verbose comment is needed in combination with the assert message. |
Hey @fhahn I don't have rights to commit this myself, can you commit it on my behalf ? (or give me commit access? edit: I have mailed chris, as per the docs) Thanks !
Name: Vedant Paranjape
email: vedant.paranjape@amd.com
github: vedantparanjape-amd
clang-format not found in user’s local PATH; not linting file.