OSDN Git Service

[AArch64] FPLoadBalancing: move ownership of the chain to its current accumulator...
authorArnaud A. de Grandmaison <arnaud.degrandmaison@arm.com>
Fri, 29 Aug 2014 09:54:11 +0000 (09:54 +0000)
committerArnaud A. de Grandmaison <arnaud.degrandmaison@arm.com>
Fri, 29 Aug 2014 09:54:11 +0000 (09:54 +0000)
commit123c92cbe07970f370def6039426e779536e0cfe
tree6f9676cd565c156bd706239b5ce173db44402754
parent622de3b2eb0901585f1e83749787f60b0bf59204
[AArch64] FPLoadBalancing: move ownership of the chain to its current accumulator register

and forget about the previously used accumulator.

Coming up with a simple testcase is not easy, as this highly depends on
what the register allocator is doing: this issue showed up while working
with the PBQP allocator, which produced a different allocation scheme.
A testcase would need to come up with chain starting in D[0-7], then
moving to D[8-15], followed by a call to a function whose regmask
clobbers the starting accumulator in D[0-7], then another use of the chain.

Fixed some formatting, added some invariant checks while there.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@216721 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64A57FPLoadBalancing.cpp