[llvm] [ValueTracking] Infer is-power-of-2 from assumptions. (PR #107745)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Sun Sep 8 09:00:11 PDT 2024


================
@@ -9950,6 +9981,10 @@ void llvm::findValuesAffectedByCondition(
             InsertAffected(X);
         }
       }
+
+      if (IsAssume && HasRHSC &&
+          match(A, m_Intrinsic<Intrinsic::ctpop>(m_Value(X))))
+        AddAffected(X);
----------------
dtcxzyw wrote:

Fixed. Thank you!


https://github.com/llvm/llvm-project/pull/107745


More information about the llvm-commits mailing list