[PATCH] D39115: [MIPS][MicroMIPS] Extending size reduction pass with LWP and SWP
Simon Dardis via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 12 03:07:30 PST 2018
sdardis added inline comments.
================
Comment at: lib/Target/Mips/MicroMipsSizeReduction.cpp:343
+// Returns true if MI can be reduced to lwp/swp instruciton
+static bool CheckXWPInstr(MachineInstr *MI, bool ReduceToLwp,
----------------
instruciton -> instruction
================
Comment at: lib/Target/Mips/MicroMipsSizeReduction.cpp:407
+ MachineBasicBlock::instr_iterator &NextMII,
+ const MachineBasicBlock::instr_iterator &E) {
----------------
Rather than passing an explicit end iterator, determine the end from the instruction iterator MII, this reduces the number of arguments to be passed.
================
Comment at: test/CodeGen/Mips/micromips-sizereduction/micromips-lwp-swp.ll:1
+; RUN: llc -march=mipsel -mattr=+micromips -mcpu=mips32r2 -verify-machineinstrs \
+; RUN: < %s | FileCheck %s
----------------
Change the -march=mipsel to -mtriple=mipsel-unknown-linux-gnu and use update_llc_checks.py to generate the check lines.
Can you add another version of this test that is .mir based but with LW_MM and SW_MM, and mixes of LW & LW_MM, similarly for the stores?
https://reviews.llvm.org/D39115
More information about the llvm-commits
mailing list