]> granicus.if.org Git - llvm/commit
Merging r223500:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 8 Dec 2014 23:18:00 +0000 (23:18 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Mon, 8 Dec 2014 23:18:00 +0000 (23:18 +0000)
commitc651bd90c57c752938d08bce7b93532abd919ef9
treeb606bc826f7f50a6c2baa6fd0e16ffde6272d759
parent7c5cb20b302d29e8027c87a63618fc3e89b5c84d
Merging r223500:
------------------------------------------------------------------------
r223500 | dexonsmith | 2014-12-05 11:13:42 -0800 (Fri, 05 Dec 2014) | 9 lines

BFI: Saturate when combining edges to a successor

When a loop gets bundled up, its outgoing edges are quite large, and can
just barely overflow 64-bits.  If one successor has multiple incoming
edges -- and that successor is getting all the incoming mass --
combining just its edges can overflow.  Handle that by saturating rather
than asserting.

This fixes PR21622.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_35@223712 91177308-0d34-0410-b5e6-96231b3b80d8