[llvm-commits] Fix overzealous assert in PHIElimination
Philipp Brüschweiler
blei42 at gmail.com
Wed Jul 4 11:51:26 PDT 2012
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.
Cheers,
Philipp
[1] http://lists.cs.uiuc.edu/pipermail/llvmdev/2012-July/051447.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: phi-elimination.patch
Type: text/x-patch
Size: 3422 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20120704/51b6aab0/attachment.bin>
More information about the llvm-commits
mailing list