[llvm] [Hexagon] Use LiveRegUnits (PR #84112)

Krzysztof Parzyszek via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 6 07:01:46 PST 2024


================
@@ -346,11 +346,11 @@ bool HexagonGenMux::genMuxInBlock(MachineBasicBlock &B) {
 
   // Fix up kill flags.
 
-  LivePhysRegs LPR(*HRI);
+  LiveRegUnits LPR(*HRI);
   LPR.addLiveOuts(B);
   auto IsLive = [&LPR, this](unsigned Reg) -> bool {
----------------
kparzysz wrote:

With this change, just replace `IsLive` with `LPR.available`.

https://github.com/llvm/llvm-project/pull/84112


More information about the llvm-commits mailing list