Make sure -optimize-regalloc=false is used correctly by user.
authorJonas Paulsson <paulsson@linux.vnet.ibm.com>
Wed, 17 May 2017 07:36:03 +0000 (07:36 +0000)
committerJonas Paulsson <paulsson@linux.vnet.ibm.com>
Wed, 17 May 2017 07:36:03 +0000 (07:36 +0000)
commit0f8678016f651058146fb4e97e2de2ff5a1f11d4
treeffda62db60794bb0524df0ef7f737a830938cd10
parentec84ffc5295d81284d8338c41823d17c90082efe
Make sure -optimize-regalloc=false is used correctly by user.

Don't allow -optimize-regalloc=false with -regalloc given for anything other
than 'fast'. The other register allocators depend on the supporting passes
added by addOptimizedRegAlloc().

Reviewers: Quentin Colombet, Matthias Braun
https://reviews.llvm.org/D33181

llvm-svn: 303238
llvm/lib/CodeGen/TargetPassConfig.cpp