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
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Analysis/IVDescriptors.cpp | ||
---|---|---|
1491 | Just return false? |
Comment Actions
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. |
Comment Actions
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
Just return false?