[llvm] promote Pseduo Opcode from 32bit to 64bits after eliminating the `extsw` instruction in PPCMIPeepholes optimization (PR #85451)

Amy Kwan via llvm-commits llvm-commits at lists.llvm.org
Wed May 1 12:08:51 PDT 2024


================
@@ -5234,6 +5234,218 @@ bool PPCInstrInfo::isTOCSaveMI(const MachineInstr &MI) const {
 // We limit the max depth to track incoming values of PHIs or binary ops
 // (e.g. AND) to avoid excessive cost.
 const unsigned MAX_BINOP_DEPTH = 1;
+
+void PPCInstrInfo::replaceInstrAfterElimExt32To64(const Register &Reg,
----------------
amy-kwan wrote:

Please add a comment to describe this function.

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


More information about the llvm-commits mailing list