[PATCH] [AArch64] FPLoadBalancing: move ownership of the chain to its current accumulator register

James Molloy james at jamesmolloy.co.uk
Fri Aug 29 02:58:53 PDT 2014


Hi Arnaud,

LGTM, please commit.

Cheers,

James


On 29 August 2014 10:48, Arnaud A. de Grandmaison <
arnaud.degrandmaison at arm.com> wrote:

> While experimenting with the PBQP allocator on aarch64, it triggered a bug
>
> in AArch64A57FPLoadBalancing.cpp, where an accumulator chain could be
>
> reference from different accumulator registers at the same time.
>
>
>
> The attached patch fixes it.
>
>
>
> 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 it 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.
>
>
>
> I also fixed some formatting and added some invariant checks while there.
>
>
>
> Cheers,
>
> --
>
> Arnaud A. de Grandmaison
>
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140829/01ce8fa2/attachment.html>


More information about the llvm-commits mailing list