[llvm] 9585500 - GlobalISel: Replace bitcast test pointer usage
Matt Arsenault via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 2 13:19:51 PST 2022
Author: Matt Arsenault
Date: 2022-12-02T16:19:38-05:00
New Revision: 9585500feab5478439d9a08d21537769833c0f2f
URL: https://github.com/llvm/llvm-project/commit/9585500feab5478439d9a08d21537769833c0f2f
DIFF: https://github.com/llvm/llvm-project/commit/9585500feab5478439d9a08d21537769833c0f2f.diff
LOG: GlobalISel: Replace bitcast test pointer usage
This won't be meaningful with opaque pointers (I guess we could leave
a ptr to ptr bitcast, or allow same sized address space bitcasts).
Added:
Modified:
llvm/test/CodeGen/AArch64/GlobalISel/arm64-irtranslator.ll
Removed:
################################################################################
diff --git a/llvm/test/CodeGen/AArch64/GlobalISel/arm64-irtranslator.ll b/llvm/test/CodeGen/AArch64/GlobalISel/arm64-irtranslator.ll
index 24ae9b7de2e2..b28f076f72cf 100644
--- a/llvm/test/CodeGen/AArch64/GlobalISel/arm64-irtranslator.ll
+++ b/llvm/test/CodeGen/AArch64/GlobalISel/arm64-irtranslator.ll
@@ -284,7 +284,7 @@ define i64* @trivial_bitcast(i8* %a) {
}
; CHECK-LABEL: name: trivial_bitcast_with_copy
-; CHECK: [[A:%[0-9]+]]:_(p0) = COPY $x0
+; CHECK: [[A:%[0-9]+]]:_(s64) = COPY $d0
; CHECK: G_BR %[[CAST:bb\.[0-9]+]]
; CHECK: [[END:bb\.[0-9]+]].{{[a-zA-Z0-9.]+}}:
@@ -292,14 +292,14 @@ define i64* @trivial_bitcast(i8* %a) {
; CHECK: [[CAST]].{{[a-zA-Z0-9.]+}}:
; CHECK: G_BR %[[END]]
-define i64* @trivial_bitcast_with_copy(i8* %a) {
+define i64 @trivial_bitcast_with_copy(double %a) {
br label %cast
end:
- ret i64* %val
+ ret i64 %val
cast:
- %val = bitcast i8* %a to i64*
+ %val = bitcast double %a to i64
br label %end
}
More information about the llvm-commits
mailing list