[llvm] d07f48e - [VPlan] Use m_BinaryOr matcher for clarity (NFC) (#151541)

via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 31 22:56:31 PDT 2025


Author: Ramkumar Ramachandra
Date: 2025-08-01T06:56:27+01:00
New Revision: d07f48e4da3dd9dd653be85bfe164aa50f36055e

URL: https://github.com/llvm/llvm-project/commit/d07f48e4da3dd9dd653be85bfe164aa50f36055e
DIFF: https://github.com/llvm/llvm-project/commit/d07f48e4da3dd9dd653be85bfe164aa50f36055e.diff

LOG: [VPlan] Use m_BinaryOr matcher for clarity (NFC) (#151541)

Added: 
    

Modified: 
    llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
index 18d331b22a60d..5f7838b8d96d2 100644
--- a/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+++ b/llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
@@ -1413,7 +1413,7 @@ static bool optimizeVectorInductionWidthForTCAndVFUF(VPlan &Plan,
 static bool isConditionTrueViaVFAndUF(VPValue *Cond, VPlan &Plan,
                                       ElementCount BestVF, unsigned BestUF,
                                       ScalarEvolution &SE) {
-  if (match(Cond, m_Binary<Instruction::Or>(m_VPValue(), m_VPValue())))
+  if (match(Cond, m_BinaryOr(m_VPValue(), m_VPValue())))
     return any_of(Cond->getDefiningRecipe()->operands(), [&Plan, BestVF, BestUF,
                                                           &SE](VPValue *C) {
       return isConditionTrueViaVFAndUF(C, Plan, BestVF, BestUF, SE);


        


More information about the llvm-commits mailing list