GlobalISel: avoid looking too closely at PHIs when we bail.
authorTim Northover <tnorthover@apple.com>
Mon, 5 Dec 2016 23:10:19 +0000 (23:10 +0000)
committerTim Northover <tnorthover@apple.com>
Mon, 5 Dec 2016 23:10:19 +0000 (23:10 +0000)
commit800638fd67c05ca48317ef2ed28cefc5a685f0f3
tree065285c8e22fb346f22efa092bc77ca5804d2691
parent48ee418f880819a162291a1aa3fcd472f9d81605
GlobalISel: avoid looking too closely at PHIs when we bail.

The function used to finish off PHIs by adding the relevant basic blocks can
fail if we're aborting and still don't actually have the needed
MachineBasicBlocks. So avoid trying in that case.

llvm-svn: 288727
llvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
llvm/test/CodeGen/AArch64/GlobalISel/arm64-fallback.ll