[CodeGen]Add NoVRegs property on PostRASink and ShrinkWrap
authorJun Bum Lim <junbuml@codeaurora.org>
Tue, 3 Apr 2018 18:17:34 +0000 (18:17 +0000)
committerJun Bum Lim <junbuml@codeaurora.org>
Tue, 3 Apr 2018 18:17:34 +0000 (18:17 +0000)
commit7ab1b32b5e51168fe4823378399c9b559a383f86
tree533696cf19f82052eb09ffb49672f6851a7ee552
parent2c5f94401565807a77f914875adeb9db7473ee73
[CodeGen]Add NoVRegs property on PostRASink and ShrinkWrap

Summary:
This change declare that PostRAMachineSinking and ShrinkWrap require NoVRegs
property, so now the MachineFunctionPass can enforce this check.
These passes are disabled in NVPTX & WebAssembly.

Reviewers: dschuff, jlebar, tra, jgravelle-google, MatzeB, sebpop, thegameg, mcrosier

Reviewed By: dschuff, thegameg

Subscribers: jholewinski, jfb, sbc100, aheejin, sunfish, llvm-commits

Differential Revision: https://reviews.llvm.org/D45183

llvm-svn: 329095
llvm/lib/CodeGen/MachineSink.cpp
llvm/lib/CodeGen/ShrinkWrap.cpp
llvm/lib/Target/NVPTX/NVPTXTargetMachine.cpp
llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp