[llvm] [AMDGPU] HasOneUse uses (PR #92534)
via llvm-commits
llvm-commits at lists.llvm.org
Fri May 17 07:41:49 PDT 2024
================
@@ -884,6 +884,9 @@ class PatFrags<dag ops, list<dag> frags, code pred = [{}],
// If set to true, a predicate is added that checks for the absence of use of
// the first result.
bit HasNoUse = ?;
+ // If set to true, a predicate is added that checks for the sole use of
+ // the first result.
----------------
jofrn wrote:
dag emitter checks `hasOneUse()` though. This file is generic to both emitters.
Also, `GIM_CheckHasNoUse` is implemented with `use_nodbg_empty`, yet the comment above `bit HasNoUse = ?;` has non-debug users as implicit.
https://github.com/llvm/llvm-project/pull/92534
More information about the llvm-commits
mailing list