Compile time improvements to VirtRegRewriter.
authorPuyan Lotfi <puyan@puyan.org>
Fri, 22 May 2015 08:11:26 +0000 (08:11 +0000)
committerPuyan Lotfi <puyan@puyan.org>
Fri, 22 May 2015 08:11:26 +0000 (08:11 +0000)
commitd9a08b08acd738f88fbe5aadbb43bc1c37912fbb
tree228602db4ef5739b04454ab9817ee38b7711f62b
parentb6b98c12d5aa2a87178df4ab133c65c725361776
Compile time improvements to VirtRegRewriter.

This change to VirtRegRewriter::addMBBLiveIns adds live-in registers for each
MachineBasicBlock's LiveIns set without isLiveIn checks as they are being added
because doing so is expensive. After all live-in registers are added, the LiveIn
vectors are sorted and uniqued.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@238008 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/CodeGen/MachineBasicBlock.h
lib/CodeGen/VirtRegMap.cpp