[WebAssembly] Support running without a register allocator in the default CodeGen...
authorDan Gohman <dan433584@gmail.com>
Tue, 8 Sep 2015 20:36:33 +0000 (20:36 +0000)
committerDan Gohman <dan433584@gmail.com>
Tue, 8 Sep 2015 20:36:33 +0000 (20:36 +0000)
commit21b2bb40548c2014d7c7d7d7a1df6f4fbe723315
treeee2e59a4a4b8705e8b006529ff73f2af0fe4ecf2
parent55478a8b796b9645781341ab1209dd4ac623d79b
[WebAssembly] Support running without a register allocator in the default CodeGen passes

This allows backends which don't use a traditional register allocator,
but do need PHI lowering and other passes, to use the default
TargetPassConfig::addFastRegAlloc and
TargetPassConfig::addOptimizedRegAlloc implementations.

Differential Revision: http://reviews.llvm.org/D12691

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247065 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/Passes.cpp
lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp