[llvm] [IR] Accept various metadata on phi nodes (PR #202877)
Yingwei Zheng via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 22 08:55:47 PDT 2026
================
@@ -13765,7 +13765,7 @@ Syntax:
::
- <result> = phi [fast-math-flags] <ty> [ <val0>, <label0>], ...
+ <result> = phi [fast-math-flags] <ty> [ <val0>, <label0>], ...[, !nonnull !<empty_node>][, !noundef !<empty_node>][, !range !<range-info>][, !nofpclass !<fpclass-info>]
----------------
dtcxzyw wrote:
IMO all poison-generating/UB-implying metadata compatible with loads should also be compatible with phi nodes. This would make life easier.
I mean `!dereferenceable[_or_null]` and `!align` should be accepted.
https://github.com/llvm/llvm-project/pull/202877
More information about the llvm-commits
mailing list