machine combiner: fix pretty printer
authorSebastian Pop <sebpop@gmail.com>
Wed, 21 Dec 2016 01:41:12 +0000 (01:41 +0000)
committerSebastian Pop <sebpop@gmail.com>
Wed, 21 Dec 2016 01:41:12 +0000 (01:41 +0000)
commit77794843134ecfb62de53df934346815ba634481
tree913378b4946074f29ca33384679fa2a5ce03be4b
parent16d315085243f2fed77e386a8b4077accc1cde7a
machine combiner: fix pretty printer

we used to print UNKNOWN instructions when the instruction to be printer was not
yet inserted in any BB: in that case the pretty printer would not be able to
compute a TII as the instruction does not belong to any BB or function yet.
This patch explicitly passes the TII to the pretty-printer.

Differential Revision: https://reviews.llvm.org/D27645

llvm-svn: 290228
llvm/include/llvm/CodeGen/MachineInstr.h
llvm/lib/CodeGen/MachineCombiner.cpp
llvm/lib/CodeGen/MachineInstr.cpp
llvm/test/CodeGen/AArch64/machine-combiner-madd.ll