aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorWei Mi <wmi@google.com>2016-04-15 23:16:44 +0000
committerWei Mi <wmi@google.com>2016-04-15 23:16:44 +0000
commit963f2df4d2aaa5e76aa6c0bc52f3de66af7be8c4 (patch)
tree6acd7dacd2443a1ff01f9c257c82bed1c9d83ebe /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parent6d09f993c266398d9bcfee6d71a03132167a01cd (diff)
downloadllvm-963f2df4d2aaa5e76aa6c0bc52f3de66af7be8c4.zip
llvm-963f2df4d2aaa5e76aa6c0bc52f3de66af7be8c4.tar.gz
llvm-963f2df4d2aaa5e76aa6c0bc52f3de66af7be8c4.tar.bz2
Don't skip splitSeparateComponents in eliminateDeadDefs for HoistSpillHelper::hoistAllSpills.
Because HoistSpillHelper::hoistAllSpills is called in postOptimization, before the patch we didn't want LiveRangeEdit::eliminateDeadDefs to call splitSeparateComponents and generate unassigned new vregs. However, skipping splitSeparateComponents will make verify-machineinstrs unhappy, so I remove the early return, and use HoistSpillHelper::LRE_DidCloneVirtReg to assign physreg/stackslot for those new vregs. In addition, some code reorganization to make class HoistSpillHelper privately inheriting from LiveRangeEdit::Delegate possible. This is to be consistent with class RAGreedy and class RegisterCoalescer. Differential Revision: http://reviews.llvm.org/D19142 llvm-svn: 266489
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions