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)
commit30ae22914173e7c9f3c83b7d12c3dd50b3478ce7
tree02106e2475566598faa8db6db85e46dfc5cd8936
parentea1d1a2d05700a8a7d92b139ab8e21664f90cafa
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.

llvm-svn: 179199
llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
llvm/lib/Target/PowerPC/PPCInstrInfo.h