diff options
| author | Andrew Trick <atrick@apple.com> | 2011-09-20 18:22:31 +0000 |
|---|---|---|
| committer | Andrew Trick <atrick@apple.com> | 2011-09-20 18:22:31 +0000 |
| commit | 52363bdbeb8fbf960ee3aa8bb8ba477213a6025b (patch) | |
| tree | 10de8bddd14ec60cac384ecc27aab9b4aba659f3 /llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | |
| parent | 75644d572955f201eaaef9f89e855d9f7c4cf40a (diff) | |
| download | bcm5719-llvm-52363bdbeb8fbf960ee3aa8bb8ba477213a6025b.tar.gz bcm5719-llvm-52363bdbeb8fbf960ee3aa8bb8ba477213a6025b.zip | |
Restore hasPostISelHook tblgen flag.
No functionality change. The hook makes it explicit which patterns
require "special" handling. i.e. it self-documents tblgen
deficiencies. I plan to add verification in ExpandISelPseudos and
Thumb2SizeReduce to catch any missing hasPostISelHooks. Otherwise it's
too fragile.
llvm-svn: 140160
Diffstat (limited to 'llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp')
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp index 9f2369d142d..b684619776f 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp @@ -179,7 +179,12 @@ TargetLowering::EmitInstrWithCustomInserter(MachineInstr *MI, void TargetLowering::AdjustInstrPostInstrSelection(MachineInstr *MI, SDNode *Node) const { - // Do nothing unless the target overrides it. +#ifndef NDEBUG + dbgs() << "If a target marks an instruction with " + "'hasPostISelHook', it must implement " + "TargetLowering::AdjustInstrPostInstrSelection!"; +#endif + llvm_unreachable(0); } //===----------------------------------------------------------------------===// |

