diff options
| author | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2016-08-02 16:49:25 +0000 |
|---|---|---|
| committer | Ahmed Bougacha <ahmed.bougacha@gmail.com> | 2016-08-02 16:49:25 +0000 |
| commit | bfaddd999a6805c522ebb8146fc80e61fdd38f16 (patch) | |
| tree | bcbda6cfb317135efe28996580deade366f5a5f8 /llvm/lib | |
| parent | b14e944cdbcf0209c5cfa0cf257fa4efed2b8fb9 (diff) | |
| download | bcm5719-llvm-bfaddd999a6805c522ebb8146fc80e61fdd38f16.tar.gz bcm5719-llvm-bfaddd999a6805c522ebb8146fc80e61fdd38f16.zip | |
[GlobalISel] Set the Selected MF property.
None of GlobalISel requires the property, but this lets us use the
verifier instead of rolling our own "all instructions selected" check.
llvm-svn: 277484
Diffstat (limited to 'llvm/lib')
| -rw-r--r-- | llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp b/llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp index 92a755c9104..4ef4c43f763 100644 --- a/llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp +++ b/llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp @@ -85,20 +85,6 @@ bool InstructionSelect::runOnMachineFunction(MachineFunction &MF) { assert(MF.size() == NumBlocks && "Inserting blocks is not supported yet"); - // Check that we did select everything. Do this separately to make sure we - // didn't miss any newly inserted instructions. - // FIXME: This (and other checks) should move into a verifier, predicated on - // a "post-isel" MachineFunction property. That would also let us selectively - // enable it depending on build configuration. - for (MachineBasicBlock &MBB : MF) { - for (MachineInstr &MI : MBB) { - if (isPreISelGenericOpcode(MI.getOpcode())) { - reportSelectionError( - MI, "Generic instruction survived instruction selection"); - } - } - } - // Now that selection is complete, there are no more generic vregs. // FIXME: We're still discussing what to do with the vreg->size map: // it's somewhat redundant (with the def MIs type size), but having to |

