[AggressiveAntiDepBreaker] Check for EarlyClobber on defining instruction
authorHal Finkel <hfinkel@anl.gov>
Mon, 31 Aug 2015 07:51:36 +0000 (07:51 +0000)
committerHal Finkel <hfinkel@anl.gov>
Mon, 31 Aug 2015 07:51:36 +0000 (07:51 +0000)
commitce5fc20a241e694eaade9b6c51831ee53143078d
treeb3fad36b8f3369407496b21b849c35e5ee2e16ef
parentdecd1ad9fcd5d47614f8c756e33dbbe81b2fa043
[AggressiveAntiDepBreaker] Check for EarlyClobber on defining instruction

AggressiveAntiDepBreaker was doing some EarlyClobber checking, but was not
checking that the register being potentially renamed was defined by an
early-clobber def where there was also a use, in that instruction, of the
register being considered as the target of the rename. Fixes PR24014.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@246423 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/AggressiveAntiDepBreaker.cpp
test/CodeGen/PowerPC/aantidep-def-ec.mir [new file with mode: 0644]