WebAssembly doesn't currently use a register allocator, but it does need PHI lowering and other passes. This pass adds support to the default TargetPassConfig::addFastRegAlloc and TargetPassConfig::addOptimizedRegAlloc for detecting when a target has requested no register allocation pass.
This allows the removal of WebAssembly's custom implementations of addFastRegAlloc and addOptimizedRegAlloc.