[llvm] 0cedb8f - [LV] Update checks to actually check VPlan for correct function.

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 7 04:05:51 PST 2024


Author: Florian Hahn
Date: 2024-12-07T12:05:17Z
New Revision: 0cedb8f215965fe25812094a9e2970b56d86a56e

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

LOG: [LV] Update checks to actually check VPlan for correct function.

The checks should apply to test_getVectorCallCost, which doesn't have a
wide add.

Added: 
    

Modified: 
    llvm/test/Transforms/LoopVectorize/AArch64/extractvalue-no-scalarization-required.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/LoopVectorize/AArch64/extractvalue-no-scalarization-required.ll b/llvm/test/Transforms/LoopVectorize/AArch64/extractvalue-no-scalarization-required.ll
index aa78113ebaa48c..f969be80c3c00a 100644
--- a/llvm/test/Transforms/LoopVectorize/AArch64/extractvalue-no-scalarization-required.ll
+++ b/llvm/test/Transforms/LoopVectorize/AArch64/extractvalue-no-scalarization-required.ll
@@ -63,11 +63,11 @@ exit:
 ; Similar to the test case above, but checks getVectorCallCost as well.
 declare float @powf(float, float) readnone nounwind
 
-; Ensure the extractvalue + add instructions are hoisted out
+; Ensure the extractvalue instructions are hoisted out
+; CM-LABEL: Checking a loop in 'test_getVectorCallCost'
 ; CM: vector.ph:
 ; CM:  CLONE ir<%a> = extractvalue ir<%sv>
 ; CM:  CLONE ir<%b> = extractvalue ir<%sv>
-; CM:  WIDEN ir<%add> = add ir<%a>, ir<%b>
 ; CM:  Successor(s): vector loop
 
 ; CM: LV: Scalar loop costs: 14.


        


More information about the llvm-commits mailing list