[llvm] [LV] Provide utility routine to find uncounted exit recipes (PR #152530)
Graham Hunter via llvm-commits
llvm-commits at lists.llvm.org
Tue Sep 16 07:16:57 PDT 2025
================
@@ -687,6 +687,37 @@ m_Intrinsic(const T0 &Op0, const T1 &Op1, const T2 &Op2, const T3 &Op3) {
return m_CombineAnd(m_Intrinsic<IntrID>(Op0, Op1, Op2), m_Argument<3>(Op3));
}
+struct loop_invariant_vpvalue {
+ template <typename ITy> bool match(ITy *V) const {
+ VPValue *Val = dyn_cast<VPValue>(V);
+ return Val && Val->isDefinedOutsideLoopRegions();
+ }
+};
+
+inline loop_invariant_vpvalue m_LoopInvVPValue() {
+ return loop_invariant_vpvalue();
+}
----------------
huntergr-arm wrote:
Changed to m_LiveIn, seems to work fine.
https://github.com/llvm/llvm-project/pull/152530
More information about the llvm-commits
mailing list