[PATCH] D149041: [IVDescriptors] Add assert to isInductionPhi to check for invalid Phis
Johannes Doerfert via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 25 11:54:09 PDT 2023
jdoerfert added inline comments.
================
Comment at: llvm/lib/Analysis/IVDescriptors.cpp:1491
+ assert(Phi->getParent() == AR->getLoop()->getHeader()
+ && "Invalid Phi node, not present in loop header");
+
----------------
Just return false?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D149041/new/
https://reviews.llvm.org/D149041
More information about the llvm-commits
mailing list