OSDN Git Service

use register iterators that include self to reduce code duplication in CriticalAntiDe...
authorSanjay Patel <spatel@rotateright.com>
Wed, 6 Aug 2014 15:58:15 +0000 (15:58 +0000)
committerSanjay Patel <spatel@rotateright.com>
Wed, 6 Aug 2014 15:58:15 +0000 (15:58 +0000)
commit72a8b11fea06491979bfed53328fab67534acc21
treec42c9989a13b779e43c223e58c04e42e2ca2e87d
parentec4188bad7f8ed75dbd9f592fe34b1c9502ca250
use register iterators that include self to reduce code duplication in CriticalAntiDepBreaker

This patch addresses 2 FIXME comments that I added to CriticalAntiDepBreaker while fixing PR20020.

Initialize an MCSubRegIterator and an MCRegAliasIterator to include the self reg.

Assuming that works as advertised, there should be functional difference with this patch, just less code.

Also, remove the associated asserts - we're setting those values just before, so the asserts don't do anything meaningful.

Differential Revision: http://reviews.llvm.org/D4566

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@214973 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CriticalAntiDepBreaker.cpp