[llvm] [MemDepAnalysis] Don't reuse NonLocalPointerDeps cache if memory location size differs (PR #116936)
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Wed Nov 20 09:44:26 PST 2024
================
@@ -98,12 +98,13 @@ define ptr @coerce_mustalias3(float %V, ptr %P) {
define float @coerce_mustalias4(ptr %P, i1 %cond) {
; CHECK-LABEL: @coerce_mustalias4(
; CHECK-NEXT: [[A:%.*]] = load i32, ptr [[P:%.*]], align 4
-; CHECK-NEXT: [[TMP1:%.*]] = bitcast i32 [[A]] to float
+; CHECK-NEXT: [[TMP1:%.*]] = load float, ptr [[P]], align 4
; CHECK-NEXT: br i1 [[COND:%.*]], label [[T:%.*]], label [[F:%.*]]
; CHECK: T:
; CHECK-NEXT: ret float [[TMP1]]
; CHECK: F:
-; CHECK-NEXT: ret float [[TMP1]]
+; CHECK-NEXT: [[X:%.*]] = bitcast i32 [[A]] to float
+; CHECK-NEXT: ret float [[X]]
----------------
aeubanks wrote:
sorry, I had messed up which version of opt I had used for UTC
https://github.com/llvm/llvm-project/pull/116936
More information about the llvm-commits
mailing list