[llvm] 973b02b - [PowerPC][NFC] use right hardware loop intrinsics in test case
Chen Zheng via llvm-commits
llvm-commits at lists.llvm.org
Sun Mar 20 07:01:32 PDT 2022
Author: Chen Zheng
Date: 2022-03-20T10:00:57-04:00
New Revision: 973b02b6f1e4dcfa5b93064e001cf1d37e73249b
URL: https://github.com/llvm/llvm-project/commit/973b02b6f1e4dcfa5b93064e001cf1d37e73249b
DIFF: https://github.com/llvm/llvm-project/commit/973b02b6f1e4dcfa5b93064e001cf1d37e73249b.diff
LOG: [PowerPC][NFC] use right hardware loop intrinsics in test case
Added:
Modified:
llvm/test/CodeGen/PowerPC/ctrloop-intrin.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/PowerPC/ctrloop-intrin.ll b/llvm/test/CodeGen/PowerPC/ctrloop-intrin.ll
index 876b96bd6ee28..283ee5e651c8e 100644
--- a/llvm/test/CodeGen/PowerPC/ctrloop-intrin.ll
+++ b/llvm/test/CodeGen/PowerPC/ctrloop-intrin.ll
@@ -298,9 +298,8 @@ for.body.116: ; preds = %for.body.116, %for.
%conv134 = trunc i32 %add133 to i8
%scevgep = getelementptr i8, i8* inttoptr (i64 -1 to i8*), i64 %call109.pn2
store i8 %conv134, i8* %scevgep, align 1, !tbaa !10
- %12 = call i64 @llvm.loop.dec(i64 %scevgep56, i64 1)
- %dec.cmp = icmp ne i64 %12, 0
- br i1 %dec.cmp, label %for.body.116, label %for.cond.cleanup.115
+ %12 = call i1 @llvm.loop.decrement(i64 1)
+ br i1 %12, label %for.body.116, label %for.cond.cleanup.115
if.then.136: ; preds = %for.cond.cleanup.115
%incdec.ptr137 = getelementptr inbounds i8, i8* %int_part_ptr.0253, i64 -1
@@ -327,7 +326,7 @@ declare i8* @memcpy(i8*, i8* nocapture readonly, i64) #1
declare void @llvm.set.loop.iterations.i64(i64) #0
; Function Attrs: nounwind
-declare i64 @llvm.loop.dec(i64, i64) #0
+declare i1 @llvm.loop.decrement(i64) #0
attributes #0 = { nounwind }
attributes #1 = { nounwind "disable-tail-calls"="false" "less-precise-fpmad"="false" "frame-pointer"="all" "no-infs-fp-math"="false" "no-nans-fp-math"="false" "stack-protector-buffer-size"="8" "unsafe-fp-math"="false" "use-soft-float"="false" }
More information about the llvm-commits
mailing list