[llvm] 7fb6d9f - [LV] Add 'fast' flag to test to make sure it will be vectorized.

Florian Hahn via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 23 08:33:11 PDT 2021


Author: Florian Hahn
Date: 2021-03-23T15:32:23Z
New Revision: 7fb6d9f9588f7dc384ff7eff0ba4d0d8f6885110

URL: https://github.com/llvm/llvm-project/commit/7fb6d9f9588f7dc384ff7eff0ba4d0d8f6885110
DIFF: https://github.com/llvm/llvm-project/commit/7fb6d9f9588f7dc384ff7eff0ba4d0d8f6885110.diff

LOG: [LV] Add 'fast' flag to test to make sure it will be vectorized.

This makes the test more robust with respect to when LV checks if the
floating point instructions in a loop can be vectorized.

Added: 
    

Modified: 
    llvm/test/Transforms/LoopVectorize/PowerPC/reg-usage.ll

Removed: 
    


################################################################################
diff  --git a/llvm/test/Transforms/LoopVectorize/PowerPC/reg-usage.ll b/llvm/test/Transforms/LoopVectorize/PowerPC/reg-usage.ll
index 13c03f01d1789..f63effd6cda10 100644
--- a/llvm/test/Transforms/LoopVectorize/PowerPC/reg-usage.ll
+++ b/llvm/test/Transforms/LoopVectorize/PowerPC/reg-usage.ll
@@ -234,7 +234,7 @@ for.body:                                         ; preds = %for.body, %entry
   %x.05 = phi ppc_fp128 [ %d, %entry ], [ %sub, %for.body ]
   %arrayidx = getelementptr inbounds ppc_fp128, ppc_fp128* %n, i32 %i.06
   %0 = load ppc_fp128, ppc_fp128* %arrayidx, align 8
-  %sub = fsub ppc_fp128 %x.05, %0
+  %sub = fsub fast ppc_fp128 %x.05, %0
   %inc = add nsw i32 %i.06, 1
   %exitcond = icmp eq i32 %inc, 2048
   br i1 %exitcond, label %for.end, label %for.body


        


More information about the llvm-commits mailing list