[llvm] ee8c14b - [LivePhysRegs] Use .asMCReg() rather than cast (NFC) (#155084)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 23 03:25:20 PDT 2025
Author: Benjamin Maxwell
Date: 2025-08-23T11:25:16+01:00
New Revision: ee8c14be14deabace692ab51f5d5d432b0a83d58
URL: https://github.com/llvm/llvm-project/commit/ee8c14be14deabace692ab51f5d5d432b0a83d58
DIFF: https://github.com/llvm/llvm-project/commit/ee8c14be14deabace692ab51f5d5d432b0a83d58.diff
LOG: [LivePhysRegs] Use .asMCReg() rather than cast (NFC) (#155084)
Should fix MSVC buildbots:
https://lab.llvm.org/buildbot/#/builders/197/builds/8321
https://lab.llvm.org/buildbot/#/builders/211/builds/1549
Added:
Modified:
llvm/lib/CodeGen/LivePhysRegs.cpp
Removed:
################################################################################
diff --git a/llvm/lib/CodeGen/LivePhysRegs.cpp b/llvm/lib/CodeGen/LivePhysRegs.cpp
index f1d31daaea530..5c8f060c09e5f 100644
--- a/llvm/lib/CodeGen/LivePhysRegs.cpp
+++ b/llvm/lib/CodeGen/LivePhysRegs.cpp
@@ -366,7 +366,7 @@ bool llvm::isPhysRegUsedAfter(Register Reg, MachineBasicBlock::iterator MBI) {
// If we hit the end of the block, check whether Reg is live into a
// successor.
for (const auto &LO : MBB->liveouts())
- if (LO.PhysReg == MCRegister(Reg) && LO.LaneMask.any())
+ if (LO.PhysReg == Reg.asMCReg() && LO.LaneMask.any())
return true;
return false;
More information about the llvm-commits
mailing list