[llvm] 142cbe7 - [SLP] improve test readability; NFC

Sanjay Patel via llvm-commits llvm-commits at lists.llvm.org
Wed Nov 13 09:59:08 PST 2019


Author: Sanjay Patel
Date: 2019-11-13T12:59:00-05:00
New Revision: 142cbe73e9fe834e6abaf2d709b4a429ca3a9c44

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

LOG: [SLP] improve test readability; NFC

Added: 
    

Modified: 
    llvm/test/Transforms/SLPVectorizer/X86/reduction.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/SLPVectorizer/X86/reduction.ll b/llvm/test/Transforms/SLPVectorizer/X86/reduction.ll
index b2ae2f7e9f32..40cb4f0ad4a0 100644
--- a/llvm/test/Transforms/SLPVectorizer/X86/reduction.ll
+++ b/llvm/test/Transforms/SLPVectorizer/X86/reduction.ll
@@ -115,11 +115,11 @@ define i32 @horiz_max_multiple_uses([32 x i32]* %x, i32* %p) {
   %t8 = select i1 %c012, i32 %s5, i32 %t2
   %c0123 = icmp sgt i32 %t8, %t3
   %rdx4 = select i1 %c0123, i32 %t8, i32 %t3
-  %EXTRA_USE = icmp sgt i32 %rdx4, %t4
-  %t14 = select i1 %EXTRA_USE, i32 %rdx4, i32 %t4
-  %c012345 = icmp sgt i32 %t14, %t5
-  %t17 = select i1 %c012345, i32 %t14, i32 %t5
-  %THREE_OR_FOUR = select i1 %EXTRA_USE, i32 3, i32 4
-  store i32 %THREE_OR_FOUR, i32* %p, align 8
+  %MAX_ROOT_CMP = icmp sgt i32 %rdx4, %t4
+  %MAX_ROOT_SEL = select i1 %MAX_ROOT_CMP, i32 %rdx4, i32 %t4
+  %c012345 = icmp sgt i32 %MAX_ROOT_SEL, %t5
+  %t17 = select i1 %c012345, i32 %MAX_ROOT_SEL, i32 %t5
+  %three_or_four = select i1 %MAX_ROOT_CMP, i32 3, i32 4
+  store i32 %three_or_four, i32* %p, align 8
   ret i32 %t17
 }


        


More information about the llvm-commits mailing list