[all-commits] [llvm/llvm-project] f6b0c0: [LiveDebugVariables] Use VirtRegMap::hasPhys. NFC ...
Craig Topper via All-commits
all-commits at lists.llvm.org
Tue Aug 27 09:07:41 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: f6b0c09214fd6805460689a36ed84489a8e89ef2
https://github.com/llvm/llvm-project/commit/f6b0c09214fd6805460689a36ed84489a8e89ef2
Author: Craig Topper <craig.topper at sifive.com>
Date: 2024-08-27 (Tue, 27 Aug 2024)
Changed paths:
M llvm/lib/CodeGen/LiveDebugVariables.cpp
Log Message:
-----------
[LiveDebugVariables] Use VirtRegMap::hasPhys. NFC (#106186)
Use hasPhys instead of MCRegister::isPhysicalRegister.
I think the MCRegister returned from getPhys can only contain a physical
register or 0. hasPhys checks that the register returned from getPhys is non-zero.
So I think they are equivalent in this usage.
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