OSDN Git Service

RegisterPressure: Remove 0 entries from PressureChange
authorMatthias Braun <matze@braunis.de>
Sat, 17 Oct 2015 00:35:59 +0000 (00:35 +0000)
committerMatthias Braun <matze@braunis.de>
Sat, 17 Oct 2015 00:35:59 +0000 (00:35 +0000)
commitfffd64acde62a29d26375a160ff5903860af41ed
treeea46260430e5a5dad18afa3120cc30b348a2a1e8
parent1c068abaef94f051704c59db1f8daef4ed784a67
RegisterPressure: Remove 0 entries from PressureChange

This should not change behaviour because as far as I can see all code
reading the pressure changes has no effect if the PressureInc is 0.
Removing these entries however does avoid unnecessary computation, and
results in a more stable debug output. I want the stable debug output to
check that some upcoming changes are indeed NFC and identical even at
the debug output level.

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