SDAG: Make sure we use an allocatable reg class when we create this vreg
authorJustin Bogner <mail@justinbogner.com>
Fri, 28 Oct 2016 22:42:54 +0000 (22:42 +0000)
committerJustin Bogner <mail@justinbogner.com>
Fri, 28 Oct 2016 22:42:54 +0000 (22:42 +0000)
commitdb6b6a7f0c951c6b11b68605ede0aacbbda4bb2a
treea4558d29d291578014193a278c2d0f38e826dc4c
parent0c3b87d925582cc3e9a4634747c278cda16b8a02
SDAG: Make sure we use an allocatable reg class when we create this vreg

As per the discussion on r280783, if constrainRegClass fails we need
to call getAllocatableClass like we did before that commit.

llvm-svn: 285467
llvm/lib/CodeGen/SelectionDAG/InstrEmitter.cpp