Allocate virtual registers in ascending order.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 2 Apr 2012 22:30:39 +0000 (22:30 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Mon, 2 Apr 2012 22:30:39 +0000 (22:30 +0000)
commite3b23cde80b19507f1d8b641a541e91ace0864dc
tree10806194e6d64949fd2dd95d36f75211a6c7f84c
parent8a06af96698537377275dd7848db69915638dd26
Allocate virtual registers in ascending order.

This is just the fallback tie-breaker ordering, the main allocation
order is still descending size.

Patch by Shamil Kurmangaleev!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153904 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/RegAllocGreedy.cpp
test/CodeGen/ARM/ldrd.ll
test/CodeGen/ARM/reg_asc_order.ll [new file with mode: 0644]
test/CodeGen/ARM/select.ll
test/CodeGen/X86/store_op_load_fold2.ll
test/CodeGen/X86/vec_shuffle-37.ll