[llvm-commits] Fix overzealous assert in PHIElimination

Jakob Stoklund Olesen stoklund at 2pi.dk
Wed Jul 4 12:53:15 PDT 2012


On Jul 4, 2012, at 11:51 AM, Philipp Brüschweiler <blei42 at gmail.com> wrote:

> Hi,
> 
> PHIElimination currently contains an assert enforcing that at most one
> terminator at the end of a block is allowed to use a virtual register
> that is about to be marked as killed. This restriction doesn't make any
> sense for a backend I'm currently helping to develop (and I suspect it
> doesn't make sense in general).
> 
> This patch instead searches for the last terminator using the
> aforementioned register. This fix was suggested here [1]. All tests
> still pass.

r159722. Thanks!

/jakob





More information about the llvm-commits mailing list