diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2016-11-18 14:14:35 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2016-11-18 14:14:35 +0000 |
commit | df613198c0d6d208f57f02abc882b36b686fef64 (patch) | |
tree | dcfeee8be7c33d65825f43a47c161b6f97615243 /llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp | |
parent | 5788b783acfa3d49e7582dfd1c3aa2f032d48a18 (diff) | |
download | bcm5719-llvm-df613198c0d6d208f57f02abc882b36b686fef64.tar.gz bcm5719-llvm-df613198c0d6d208f57f02abc882b36b686fef64.zip |
GlobalISel: Fix unconditional fallback with global isel abort is disabled
Reviewers: t.p.northover, ab, qcolombet
Subscribers: mehdi_amini, vkalintiris, wdng, dberris, llvm-commits, rovka
Differential Revision: https://reviews.llvm.org/D26765
llvm-svn: 287344
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp')
-rw-r--r-- | llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp b/llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp index 72e4a23bb40..1d205cd6c9c 100644 --- a/llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp +++ b/llvm/lib/CodeGen/GlobalISel/InstructionSelect.cpp @@ -164,7 +164,7 @@ bool InstructionSelect::runOnMachineFunction(MachineFunction &MF) { MRI.getVRegToType().clear(); - if (!TPC.isGlobalISelAbortEnabled() && (Failed || MF.size() == NumBlocks)) { + if (!TPC.isGlobalISelAbortEnabled() && (Failed || MF.size() != NumBlocks)) { MF.getProperties().set(MachineFunctionProperties::Property::FailedISel); return false; } |