[GlobalISel] Add a fallback path to SDISel.
authorQuentin Colombet <qcolombet@apple.com>
Sat, 27 Aug 2016 00:18:31 +0000 (00:18 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Sat, 27 Aug 2016 00:18:31 +0000 (00:18 +0000)
commit374796d67853db94589da4aec48443e28e1a1590
tree8f9ee74beac7679032a8f393856ad1eca0e876b3
parenta94caa56736debed318eaf4dd20632d2132ebdf8
[GlobalISel] Add a fallback path to SDISel.

When global-isel fails on a MachineFunction MF, MF will be cleaned up
and given to SDISel.
Thanks to this fallback, we can already perform correctness test even if
we support only a small portion of the functions in a test.

llvm-svn: 279891
llvm/include/llvm/CodeGen/Passes.h
llvm/include/llvm/InitializePasses.h
llvm/lib/CodeGen/CMakeLists.txt
llvm/lib/CodeGen/LLVMTargetMachine.cpp
llvm/lib/CodeGen/ResetMachineFunctionPass.cpp [new file with mode: 0644]
llvm/test/CodeGen/AArch64/GlobalISel/arm64-fallback.ll [new file with mode: 0644]