[clang] [Clang][CodeGen] Add metadata for load from reference (PR #98746)
Eli Friedman via cfe-commits
cfe-commits at lists.llvm.org
Thu May 22 14:00:23 PDT 2025
================
@@ -20,10 +20,10 @@ void test_add_template() {
// CHECK: %call = call noundef <10 x float> @_Z3addIfLj2ELj5EEN8MyMatrixIT_XT0_EXT1_EE8matrix_tERS2_S4_(ptr noundef nonnull align 4 dereferenceable(40) %Mat1, ptr noundef nonnull align 4 dereferenceable(40) %Mat2)
// CHECK-LABEL: define linkonce_odr noundef <10 x float> @_Z3addIfLj2ELj5EEN8MyMatrixIT_XT0_EXT1_EE8matrix_tERS2_S4_(
- // NOOPT: [[MAT1:%.*]] = load <10 x float>, ptr {{.*}}, align 4{{$}}
- // NOOPT: [[MAT2:%.*]] = load <10 x float>, ptr {{.*}}, align 4{{$}}
- // OPT: [[MAT1:%.*]] = load <10 x float>, ptr {{.*}}, align 4, !tbaa !{{[0-9]+}}{{$}}
- // OPT: [[MAT2:%.*]] = load <10 x float>, ptr {{.*}}, align 4, !tbaa !{{[0-9]+}}{{$}}
+ // NOOPT: [[MAT1:%.*]] = load <10 x float>, ptr {{.*}}, align 4{{.*}}
----------------
efriedma-quic wrote:
`{{.*}}` doesn't do anything useful here. If you think there isn't anything useful to check here, just delete the end-of-line check.
Deleting the end-of-line checks here is... probably fine? Maybe at least check for a comma, so it's clear there's more text following. CC @fhahn
https://github.com/llvm/llvm-project/pull/98746
More information about the cfe-commits
mailing list