[llvm] 1049735 - [LV] Adjust accesses in test to ensure full RT checks are generated.
Florian Hahn via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 7 10:07:53 PST 2022
Author: Florian Hahn
Date: 2022-02-07T18:07:19Z
New Revision: 1049735d0739acf01ebf8f1208cb28efc0365658
URL: https://github.com/llvm/llvm-project/commit/1049735d0739acf01ebf8f1208cb28efc0365658
DIFF: https://github.com/llvm/llvm-project/commit/1049735d0739acf01ebf8f1208cb28efc0365658.diff
LOG: [LV] Adjust accesses in test to ensure full RT checks are generated.
Add an additional access so the full runtime checks are still generated,
even after D119078.
Added:
Modified:
llvm/test/Transforms/LoopVectorize/unroll-novec-memcheck-metadata.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/LoopVectorize/unroll-novec-memcheck-metadata.ll b/llvm/test/Transforms/LoopVectorize/unroll-novec-memcheck-metadata.ll
index d3112b82d1d53..e3857bb808f89 100644
--- a/llvm/test/Transforms/LoopVectorize/unroll-novec-memcheck-metadata.ll
+++ b/llvm/test/Transforms/LoopVectorize/unroll-novec-memcheck-metadata.ll
@@ -21,9 +21,10 @@ entry:
for.body: ; preds = %for.body, %entry
%indvars.iv = phi i64 [ 0, %entry ], [ %indvars.iv.next, %for.body ]
%arrayidx = getelementptr inbounds i32, i32* %a, i64 %indvars.iv
- %0 = load i32, i32* %arrayidx, align 4
- %add = add nsw i32 %0, 77
+ %l.1 = load i32, i32* %arrayidx, align 4
%arrayidx2 = getelementptr inbounds i32, i32* %b, i64 %indvars.iv
+ %l.2 = load i32, i32* %arrayidx2
+ %add = add nsw i32 %l.1, %l.2
store i32 %add, i32* %arrayidx2, align 4
%indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
%exitcond = icmp eq i64 %indvars.iv.next, 10000
More information about the llvm-commits
mailing list