From 59ac44b3c129070c3c8b35471a24d94360a0a2a9 Mon Sep 17 00:00:00 2001 From: Florian Hahn Date: Thu, 16 Jan 2020 09:57:12 +0000 Subject: [PATCH] [LV] Make X86/assume.ll X86 independent (NFC). The test does not check anything X86 specific. This is a preparation for the D68814. --- llvm/test/Transforms/LoopVectorize/{X86 => }/assume.ll | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) rename llvm/test/Transforms/LoopVectorize/{X86 => }/assume.ll (85%) 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 4fd378d..3e79ea0 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 } - -- 2.7.4