[llvm] [CodeGen] Check entire block if no threshold was given for neighbors (PR #83526)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 3 23:54:56 PST 2024


================
@@ -1598,15 +1598,42 @@ MachineBasicBlock::getProbabilityIterator(MachineBasicBlock::succ_iterator I) {
   return Probs.begin() + index;
 }
 
+MachineBasicBlock::LivenessQueryResult
+MachineBasicBlock::computeRegisterLiveness(const TargetRegisterInfo *TRI,
+                                           MCRegister Reg,
+                                           const_iterator Before) const {
+  LivePhysRegs UsedRegs(*TRI);
----------------
arsenm wrote:

LiveRegUnits should always be preferred to LivePhysRegs. No new uses of LivePhysRegs should be introduced 

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


More information about the llvm-commits mailing list