PPC: Don't predicate a diamond with two counter decrements
authorHal Finkel <hfinkel@anl.gov>
Wed, 10 Apr 2013 18:30:16 +0000 (18:30 +0000)
committerHal Finkel <hfinkel@anl.gov>
Wed, 10 Apr 2013 18:30:16 +0000 (18:30 +0000)
commitda47e17a6f58bb4dae22d3e79c69fcb1d254ba44
tree09d150f503077cd8cad2d5be9753a968b985c219
parentba69b366929a39d393e7eed0bbf2edc31d8de599
PPC: Don't predicate a diamond with two counter decrements

I've not seen this happen in practice, and probably can't until we start
allowing decrement-counter-based conditional branches to be double predicated,
but just in case, don't allow predication of a diamond in which both sides have
ctr-defining branches. Even though the branching behavior of these can be
predicated, the counter-decrementing behavior cannot be.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@179199 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCInstrInfo.cpp
lib/Target/PowerPC/PPCInstrInfo.h