This reverts commit 16c8f6e9 with fix. -Wswitch catched an unhandled enum value due to recent commits in TargetPassConfig.cpp.