[all-commits] [llvm/llvm-project] 9b4b9d: [MRI] Avoid walking past all defs in hasOneUse() (...
Mingjie Xu via All-commits
all-commits at lists.llvm.org
Sun Jun 7 18:08:28 PDT 2026
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 9b4b9de0319b63ff56dd157b1d12465f206681f6
https://github.com/llvm/llvm-project/commit/9b4b9de0319b63ff56dd157b1d12465f206681f6
Author: Mingjie Xu <xumingjie.enna1 at bytedance.com>
Date: 2026-06-08 (Mon, 08 Jun 2026)
Changed paths:
M llvm/include/llvm/CodeGen/MachineRegisterInfo.h
Log Message:
-----------
[MRI] Avoid walking past all defs in hasOneUse() (#201249)
The use-def list is circular in the Prev direction (Head->Prev == Tail)
and defs always precede uses, see
MachineRegisterInfo::addRegOperandToUseList().
We can implement hasOneUse() by checking only the Tail and its Prev,
instead of
walking past all defs from the head via use_iterator.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list