[llvm] [GlobalISel][Localizer] Allow localization of a small number of repeated phi uses. (PR #77566)

Thorsten Schütt via llvm-commits llvm-commits at lists.llvm.org
Wed Jan 10 03:40:53 PST 2024


================
@@ -67,10 +67,7 @@ class Localizer : public MachineFunctionPass {
 
   typedef SmallSetVector<MachineInstr *, 32> LocalizedSetVecT;
 
-  /// If \p Op is a phi operand and not unique in that phi, that is,
-  /// there are other operands in the phi with the same register,
-  /// return true.
-  bool isNonUniquePhiValue(MachineOperand &Op) const;
+  unsigned getNumPhiUses(MachineOperand &Op) const;
----------------
tschuett wrote:

Some readers might enjoy a rephrased comment instead of deletion.

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


More information about the llvm-commits mailing list