[llvm] IR: Remove null UseList checks in hasNUses methods (PR #165929)
Danila Malyutin via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 4 15:51:51 PST 2025
danilaml wrote:
@arsenm it wasn't relying on uselists of a constant data. It was relying on `hasNUses` call on `Value` (just instruction operands). In this case it was trivial to add a dyn_cast check but currently `hasNUses` feels footgun-y. All "unqualified" (i.e. on plain Value) calls are now suspect.
https://github.com/llvm/llvm-project/pull/165929
More information about the llvm-commits
mailing list