Fix the PPC subsumes-predicate check
authorHal Finkel <hfinkel@anl.gov>
Wed, 11 Dec 2013 23:12:25 +0000 (23:12 +0000)
committerHal Finkel <hfinkel@anl.gov>
Wed, 11 Dec 2013 23:12:25 +0000 (23:12 +0000)
commit598ee5a3e7fe96cc4b3f92b8c17e393ffcff5293
tree4d7f6dad1f68d0fa858b4314950abaf8eaf94711
parent8bacb53cc6925f2af7f0f61f5bd06f34e46fc672
Fix the PPC subsumes-predicate check

For one predicate to subsume another, they must both check the same condition
register. Failure to check this prerequisite was causing miscompiles.

Fixes PR18003.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@197089 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/PowerPC/PPCInstrInfo.cpp
test/CodeGen/PowerPC/subsumes-pred-regs.ll [new file with mode: 0644]