[PATCH] D131168: [test] Rename assume_icmp to assume_cmp
Parth Shastri via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Aug 4 07:23:38 PDT 2022
cppio created this revision.
Herald added a project: All.
cppio requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.
Renames assume_icmp.ll to assume_cmp.ll in anticipation of adding fcmp tests.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D131168
Files:
llvm/test/Transforms/InstSimplify/assume_cmp.ll
llvm/test/Transforms/InstSimplify/assume_icmp.ll
Index: llvm/test/Transforms/InstSimplify/assume_cmp.ll
===================================================================
--- llvm/test/Transforms/InstSimplify/assume_cmp.ll
+++ llvm/test/Transforms/InstSimplify/assume_cmp.ll
@@ -4,8 +4,8 @@
declare void @llvm.assume(i1)
declare void @use(i1)
-define void @basic_ugt(i32 %x, i32 %y) {
-; CHECK-LABEL: @basic_ugt(
+define void @icmp_ugt(i32 %x, i32 %y) {
+; CHECK-LABEL: @icmp_ugt(
; CHECK-NEXT: [[CMP1:%.*]] = icmp ugt i32 [[X:%.*]], [[Y:%.*]]
; CHECK-NEXT: call void @llvm.assume(i1 [[CMP1]])
; CHECK-NEXT: call void @use(i1 true)
@@ -42,8 +42,8 @@
ret void
}
-define void @basic_uge(i32 %x, i32 %y) {
-; CHECK-LABEL: @basic_uge(
+define void @icmp_uge(i32 %x, i32 %y) {
+; CHECK-LABEL: @icmp_uge(
; CHECK-NEXT: [[CMP1:%.*]] = icmp uge i32 [[X:%.*]], [[Y:%.*]]
; CHECK-NEXT: call void @llvm.assume(i1 [[CMP1]])
; CHECK-NEXT: [[CMP2:%.*]] = icmp ugt i32 [[X]], [[Y]]
@@ -87,8 +87,8 @@
; This does not simplify in InstSimplify, because AssumptionCache tracker
; does not track values through "and". The "and" assume will be broken
; down into two separate assume calls by InstCombine.
-define void @and(i32 %x, i32 %y, i32 %z) {
-; CHECK-LABEL: @and(
+define void @icmp_and(i32 %x, i32 %y, i32 %z) {
+; CHECK-LABEL: @icmp_and(
; CHECK-NEXT: [[CMP1:%.*]] = icmp ugt i32 [[X:%.*]], [[Y:%.*]]
; CHECK-NEXT: [[CMP2:%.*]] = icmp ugt i32 [[Z:%.*]], [[Y]]
; CHECK-NEXT: [[AND:%.*]] = and i1 [[CMP1]], [[CMP2]]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D131168.449974.patch
Type: text/x-patch
Size: 1503 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220804/a6acf05d/attachment.bin>
More information about the llvm-commits
mailing list