[llvm] 59ac44b - [LV] Make X86/assume.ll X86 independent (NFC).

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 16 02:05:54 PST 2020


Author: Florian Hahn
Date: 2020-01-16T10:01:35Z
New Revision: 59ac44b3c129070c3c8b35471a24d94360a0a2a9

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

LOG: [LV] Make X86/assume.ll X86 independent (NFC).

The test does not check anything X86 specific. This is a preparation for
the D68814.

Added: 
    llvm/test/Transforms/LoopVectorize/assume.ll

Modified: 
    

Removed: 
    llvm/test/Transforms/LoopVectorize/X86/assume.ll


################################################################################
diff  --git a/llvm/test/Transforms/LoopVectorize/X86/assume.ll b/llvm/test/Transforms/LoopVectorize/assume.ll
similarity index 85%
rename from llvm/test/Transforms/LoopVectorize/X86/assume.ll
rename to llvm/test/Transforms/LoopVectorize/assume.ll
index 4fd378d1a0a9..3e79ea068fbc 100644
--- a/llvm/test/Transforms/LoopVectorize/X86/assume.ll
+++ b/llvm/test/Transforms/LoopVectorize/assume.ll
@@ -1,9 +1,6 @@
-; RUN: opt < %s  -loop-vectorize -mtriple=x86_64-apple-macosx10.8.0 -mcpu=corei7 -S | FileCheck %s
-target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128"
-target triple = "x86_64-unknown-linux-gnu"
+; RUN: opt < %s  -loop-vectorize -force-vector-width=4 -force-vector-interleave=2  -S | FileCheck %s
 
-; Function Attrs: nounwind uwtable
-define void @test1(float* noalias nocapture %a, float* noalias nocapture readonly %b) #0 {
+define void @test1(float* noalias nocapture %a, float* noalias nocapture readonly %b) {
 entry:
   br label %for.body
 
@@ -37,16 +34,13 @@ for.end:                                          ; preds = %for.body
   ret void
 }
 
-; Function Attrs: nounwind
-declare void @llvm.assume(i1) #1
+declare void @llvm.assume(i1) #0
 
-attributes #0 = { nounwind uwtable }
-attributes #1 = { nounwind }
+attributes #0 = { nounwind willreturn }
 
 %struct.data = type { float*, float* }
 
-; Function Attrs: nounwind uwtable
-define void @test2(%struct.data* nocapture readonly %d) #0 {
+define void @test2(%struct.data* nocapture readonly %d) {
 entry:
   %b = getelementptr inbounds %struct.data, %struct.data* %d, i64 0, i32 1
   %0 = load float*, float** %b, align 8
@@ -97,4 +91,3 @@ for.body:                                         ; preds = %for.body, %entry
 for.end:                                          ; preds = %for.body
   ret void
 }
-


        


More information about the llvm-commits mailing list