[llvm] 2f768a6 - [InstCombine] Regenerate cast tests. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 28 13:32:30 PDT 2020
Author: Simon Pilgrim
Date: 2020-09-28T21:32:12+01:00
New Revision: 2f768a68a148a73bf1f52b160a28b9f77c6d830e
URL: https://github.com/llvm/llvm-project/commit/2f768a68a148a73bf1f52b160a28b9f77c6d830e
DIFF: https://github.com/llvm/llvm-project/commit/2f768a68a148a73bf1f52b160a28b9f77c6d830e.diff
LOG: [InstCombine] Regenerate cast tests. NFC.
Added:
Modified:
llvm/test/Transforms/InstCombine/cast.ll
Removed:
################################################################################
diff --git a/llvm/test/Transforms/InstCombine/cast.ll b/llvm/test/Transforms/InstCombine/cast.ll
index 18b411103122..dcd3013621fd 100644
--- a/llvm/test/Transforms/InstCombine/cast.ll
+++ b/llvm/test/Transforms/InstCombine/cast.ll
@@ -995,7 +995,7 @@ define %s @test68(%s *%p, i64 %i) {
; ALL-LABEL: @test68(
; ALL-NEXT: [[PP1:%.*]] = getelementptr [[S:%.*]], %s* [[P:%.*]], i64 [[I:%.*]]
; ALL-NEXT: [[L:%.*]] = load [[S]], %s* [[PP1]], align 4
-; ALL-NEXT: ret [[S]] %l
+; ALL-NEXT: ret [[S]] [[L]]
;
%o = mul i64 %i, 12
%q = bitcast %s* %p to i8*
@@ -1010,7 +1010,7 @@ define %s @test68_addrspacecast(%s* %p, i64 %i) {
; ALL-LABEL: @test68_addrspacecast(
; ALL-NEXT: [[PP1:%.*]] = getelementptr [[S:%.*]], %s* [[P:%.*]], i64 [[I:%.*]]
; ALL-NEXT: [[L:%.*]] = load [[S]], %s* [[PP1]], align 4
-; ALL-NEXT: ret [[S]] %l
+; ALL-NEXT: ret [[S]] [[L]]
;
%o = mul i64 %i, 12
%q = addrspacecast %s* %p to i8 addrspace(2)*
@@ -1025,7 +1025,7 @@ define %s @test68_addrspacecast_2(%s* %p, i64 %i) {
; ALL-NEXT: [[PP1:%.*]] = getelementptr [[S:%.*]], %s* [[P:%.*]], i64 [[I:%.*]]
; ALL-NEXT: [[R:%.*]] = addrspacecast %s* [[PP1]] to [[S]] addrspace(1)*
; ALL-NEXT: [[L:%.*]] = load [[S]], [[S]] addrspace(1)* [[R]], align 4
-; ALL-NEXT: ret [[S]] %l
+; ALL-NEXT: ret [[S]] [[L]]
;
%o = mul i64 %i, 12
%q = addrspacecast %s* %p to i8 addrspace(2)*
@@ -1039,7 +1039,7 @@ define %s @test68_as1(%s addrspace(1)* %p, i32 %i) {
; ALL-LABEL: @test68_as1(
; ALL-NEXT: [[PP1:%.*]] = getelementptr [[S:%.*]], [[S]] addrspace(1)* [[P:%.*]], i32 [[I:%.*]]
; ALL-NEXT: [[L:%.*]] = load [[S]], [[S]] addrspace(1)* [[PP1]], align 4
-; ALL-NEXT: ret [[S]] %l
+; ALL-NEXT: ret [[S]] [[L]]
;
%o = mul i32 %i, 12
%q = bitcast %s addrspace(1)* %p to i8 addrspace(1)*
@@ -1068,7 +1068,7 @@ define %s @test70(%s *%p, i64 %i) {
; ALL-NEXT: [[O:%.*]] = mul nsw i64 [[I:%.*]], 3
; ALL-NEXT: [[PP1:%.*]] = getelementptr inbounds [[S:%.*]], %s* [[P:%.*]], i64 [[O]]
; ALL-NEXT: [[L:%.*]] = load [[S]], %s* [[PP1]], align 4
-; ALL-NEXT: ret [[S]] %l
+; ALL-NEXT: ret [[S]] [[L]]
;
%o = mul nsw i64 %i, 36
%q = bitcast %s* %p to i8*
@@ -1160,7 +1160,7 @@ define %s @test76(%s *%p, i64 %i, i64 %j) {
; ALL-NEXT: [[O2:%.*]] = mul i64 [[I:%.*]], [[J:%.*]]
; ALL-NEXT: [[PP1:%.*]] = getelementptr [[S:%.*]], %s* [[P:%.*]], i64 [[O2]]
; ALL-NEXT: [[L:%.*]] = load [[S]], %s* [[PP1]], align 4
-; ALL-NEXT: ret [[S]] %l
+; ALL-NEXT: ret [[S]] [[L]]
;
%o = mul i64 %i, 12
%o2 = mul nsw i64 %o, %j
@@ -1177,7 +1177,7 @@ define %s @test77(%s *%p, i64 %i, i64 %j) {
; ALL-NEXT: [[O2:%.*]] = mul nsw i64 [[O]], [[J:%.*]]
; ALL-NEXT: [[PP1:%.*]] = getelementptr inbounds [[S:%.*]], %s* [[P:%.*]], i64 [[O2]]
; ALL-NEXT: [[L:%.*]] = load [[S]], %s* [[PP1]], align 4
-; ALL-NEXT: ret [[S]] %l
+; ALL-NEXT: ret [[S]] [[L]]
;
%o = mul nsw i64 %i, 36
%o2 = mul nsw i64 %o, %j
@@ -1200,7 +1200,7 @@ define %s @test78(%s *%p, i64 %i, i64 %j, i32 %k, i32 %l, i128 %m, i128 %n) {
; ALL-NEXT: [[H:%.*]] = mul i64 [[G]], [[J:%.*]]
; ALL-NEXT: [[PP1:%.*]] = getelementptr [[S:%.*]], %s* [[P:%.*]], i64 [[H]]
; ALL-NEXT: [[LOAD:%.*]] = load [[S]], %s* [[PP1]], align 4
-; ALL-NEXT: ret [[S]] %load
+; ALL-NEXT: ret [[S]] [[LOAD]]
;
%a = mul nsw i32 %k, 36
%b = mul nsw i32 %a, %l
@@ -1227,7 +1227,7 @@ define %s @test79(%s *%p, i64 %i, i32 %j) {
; ALL-NEXT: [[PP:%.*]] = getelementptr inbounds i8, i8* [[Q]], i64 [[TMP2]]
; ALL-NEXT: [[R:%.*]] = bitcast i8* [[PP]] to %s*
; ALL-NEXT: [[L:%.*]] = load [[S:%.*]], %s* [[R]], align 4
-; ALL-NEXT: ret [[S]] %l
+; ALL-NEXT: ret [[S]] [[L]]
;
%a = mul nsw i64 %i, 36
%b = trunc i64 %a to i32
More information about the llvm-commits
mailing list