[llvm] [LV][NFC] Remove llvm.ident and other attributes/annotations from tests (PR #191375)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 10 04:07:36 PDT 2026


================
@@ -30,19 +30,10 @@ for.body:
   store i32 %0, ptr %arrayidx, align 4, !tbaa !4
   %indvars.iv.next = add nuw nsw i64 %indvars.iv, 1
   %exitcond.not = icmp eq i64 %indvars.iv.next, %wide.trip.count
-  br i1 %exitcond.not, label %for.cond.cleanup.loopexit, label %for.body, !llvm.loop !8
+  br i1 %exitcond.not, label %for.cond.cleanup.loopexit, label %for.body
 }
 
-!llvm.module.flags = !{!0, !1, !2}
-!llvm.ident = !{!3}
-
-!0 = !{i32 1, !"wchar_size", i32 4}
-!1 = !{i32 1, !"target-abi", !"lp64"}
-!2 = !{i32 8, !"SmallDataLimit", i32 8}
-!3 = !{!"clang version 13.0.0"}
 !4 = !{!5, !5, i64 0}
----------------
david-arm wrote:

Yeah I've thought about cleaning up tbaa attributes in tests too, but that's a little trickier since it requires going through each test to see if they rely on them or not. I suspect in many cases it's enough to replace tbaa information with `noalias` attributes on pointer arguments passed in to the function, etc. Removing the attributes completely may lead to increased code size due to additional runtime CHECK lines.

https://github.com/llvm/llvm-project/pull/191375


More information about the llvm-commits mailing list