[llvm] [Verifier] Only accept noundef metadata on loads and update metadata tests (PR #204922)
Nikita Popov via llvm-commits
llvm-commits at lists.llvm.org
Sat Jun 20 05:55:59 PDT 2026
================
@@ -1717,7 +1717,7 @@ define nofpclass(snan) float @not_nan__maximum_noundef_md__not_nan(float nofpcla
; CHECK-NEXT: [[RESULT:%.*]] = call nnan float @llvm.maximum.f32(float [[NOT_NAN0]], float [[NOT_NAN1]])
; CHECK-NEXT: ret float [[RESULT]]
;
- %result = call float @llvm.maximum.f32(float %not.nan0, float %not.nan1), !noundef !0, !unknown.md !0
+ %result = call float @llvm.maximum.f32(float %not.nan0, float %not.nan1), !unknown.md !0
----------------
nikic wrote:
Should probably move it to a noundef return attribute in cases like this? I think the intent of the test is to check that it gets dropped.
https://github.com/llvm/llvm-project/pull/204922
More information about the llvm-commits
mailing list