OSDN Git Service

RegisterPressure: Simplify close{Top|Bottom}()
authorMatthias Braun <matze@braunis.de>
Mon, 14 Sep 2015 18:24:15 +0000 (18:24 +0000)
committerMatthias Braun <matze@braunis.de>
Mon, 14 Sep 2015 18:24:15 +0000 (18:24 +0000)
commit006c6c9fe2818447fd2885c0feb55c9156e6ce09
tree189d547dcf34cab954e7fdd8309b3004f407dfd8
parentecc1d153b795b9d66529d848225e65c3b6e0b6fb
RegisterPressure: Simplify close{Top|Bottom}()

- There are no duplicate registers in LiveRegs list we are copying from
  and so we do not need to sort the registers.
- Simply use SmallVector::apend instead of a loop between begin() and end()
  with push_back().

Differential Revision: http://reviews.llvm.org/D12813

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247588 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/RegisterPressure.cpp