[llvm] 9d45daf - [PhaseOrdering] add AVX attribute to make test less fragile; NFC

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 23 08:35:14 PDT 2021


Author: Sanjay Patel
Date: 2021-03-23T11:34:33-04:00
New Revision: 9d45daf4656e0df8d757d628cff3f4917cc5774d

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

LOG: [PhaseOrdering] add AVX attribute to make test less fragile; NFC

This doesn't change anything currently, but as discussed in
D98981 and D98152, some tests may fail to vectorize because
the cost model becomes more accurate as we switch over to
using min/max intrinsics.

Added: 
    

Modified: 
    llvm/test/Transforms/PhaseOrdering/X86/vector-reductions-expanded.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/PhaseOrdering/X86/vector-reductions-expanded.ll b/llvm/test/Transforms/PhaseOrdering/X86/vector-reductions-expanded.ll
index 3aefdb2dd6b1..463be094596d 100644
--- a/llvm/test/Transforms/PhaseOrdering/X86/vector-reductions-expanded.ll
+++ b/llvm/test/Transforms/PhaseOrdering/X86/vector-reductions-expanded.ll
@@ -1,5 +1,5 @@
 ; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
-; RUN: opt -O2 -expand-reductions -S < %s | FileCheck %s
+; RUN: opt -O2 -expand-reductions -mattr=avx -S < %s | FileCheck %s
 
 ; Test if SLP vector reduction patterns are recognized
 ; and optionally converted to reduction intrinsics and


        


More information about the llvm-commits mailing list