[PATCH] D83275: [llc] (almost) remove `--print-machineinstrs`

Yuanfang Chen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 6 20:40:21 PDT 2020


ychen created this revision.
ychen added reviewers: arsenm, dsanders.
Herald added subscribers: llvm-commits, jfb, atanasyan, jrtc27, aheejin, hiraditya, jgravelle-google, sbc100, wdng, sdardis, dschuff.
Herald added a project: LLVM.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D83275

Files:
  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
  llvm/test/CodeGen/Hexagon/ifcvt-edge-weight.ll
  llvm/test/CodeGen/X86/llc-print-machineinstrs.mir
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D83275.275897.patch
Type: text/x-patch
Size: 26432 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200707/378d295e/attachment.bin>


More information about the llvm-commits mailing list