[llvm] [IR] Add new function attribute nocreateundeforpoison (PR #164809)

Jay Foad via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 24 08:42:15 PDT 2025


jayfoad wrote:

> Does NoCreateUndefOrPoison imply propagating poison?

No. Just like ValueTracking's canCreateUndefOrPoison, it tells you whether the result might be undef/poison when the arguments are not undef/poison. It says nothing about the result when the arguments _are_ undef/poison. That would need a separate attribute.

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


More information about the llvm-commits mailing list