[PATCH] D23253: [X86] Generalized transformation of `definstr gr8; movzx gr32, gr8` to `xor gr32, gr32; definstr gr8`

bryant via llvm-commits llvm-commits at lists.llvm.org
Sun Aug 14 13:42:48 PDT 2016


bryant added inline comments.

================
Comment at: lib/CodeGen/CalcSpillWeights.cpp:46
@@ -45,4 +45,3 @@
 // Return the preferred allocation register for reg, given a COPY instruction.
-static unsigned copyHint(const MachineInstr *mi, unsigned reg,
-                         const TargetRegisterInfo &tri,
-                         const MachineRegisterInfo &mri) {
+unsigned VirtRegAuxInfo::copyHint(const MachineInstr *mi, unsigned reg,
+                                  const TargetRegisterInfo &tri,
----------------
All this does is permit access to `copyHint` to the general public. Please advise if this belongs in a separate differential.


Repository:
  rL LLVM

https://reviews.llvm.org/D23253





More information about the llvm-commits mailing list