OSDN Git Service

[llc] (almost) remove `--print-machineinstrs`
authorYuanfang Chen <yuanfang.chen@sony.com>
Mon, 20 Jul 2020 17:09:41 +0000 (10:09 -0700)
committerYuanfang Chen <yuanfang.chen@sony.com>
Mon, 20 Jul 2020 17:43:28 +0000 (10:43 -0700)
commit589c646a7e5fb03223340476f7ffb67fd9628726
tree87bc1613c7e6082bfe171e30cb3d702e86d04f7e
parentce76d15a70d036f4a307a41b91b5051ff492b2e9
[llc] (almost) remove `--print-machineinstrs`

Its effect could be achieved by
`-stop-after`,`-print-after`,`-print-after-all`. But a few tests need to
print MIR after ISel which could not be done with
`-print-after`/`-stop-after` since isel pass does not have commandline name.
That's the reason `--print-machineinstrs` is downgraded to
`--print-after-isel` in this patch. `--print-after-isel` could be
removed after we switch to new pass manager since isel pass would have a
commandline text name to use `print-after` or equivalent switches.

The motivation of this patch is to reduce tests dependency on
would-be-deprecated feature.

Reviewed By: arsenm, dsanders

Differential Revision: https://reviews.llvm.org/D83275
22 files changed:
llvm/docs/CommandGuide/llc.rst
llvm/docs/CommandGuide/lli.rst
llvm/include/llvm/CodeGen/TargetPassConfig.h
llvm/include/llvm/Target/TargetMachine.h
llvm/include/llvm/Target/TargetOptions.h
llvm/lib/CodeGen/MachineOperand.cpp
llvm/lib/CodeGen/TargetPassConfig.cpp
llvm/lib/Target/Mips/MipsTargetMachine.cpp
llvm/test/CodeGen/AArch64/chkstk.ll
llvm/test/CodeGen/AArch64/max-jump-table.ll
llvm/test/CodeGen/AArch64/min-jump-table.ll
llvm/test/CodeGen/ARM/ifcvt-branch-weight-bug.ll
llvm/test/CodeGen/ARM/ifcvt-branch-weight.ll
llvm/test/CodeGen/ARM/ifcvt-iter-indbr.ll
llvm/test/CodeGen/ARM/tail-merge-branch-weight.ll
llvm/test/CodeGen/ARM/taildup-branch-weight.ll
llvm/test/CodeGen/Generic/print-machineinstrs.ll [deleted file]
llvm/test/CodeGen/Hexagon/ifcvt-edge-weight.ll
llvm/test/CodeGen/X86/llc-print-machineinstrs.mir [deleted file]
llvm/test/DebugInfo/WebAssembly/dbg-value-live-interval.ll
llvm/test/DebugInfo/WebAssembly/dbg-value-move-2.ll
llvm/test/DebugInfo/WebAssembly/dbg-value-move.ll