[PowerPC] Fix the implicit operands in PredicateInstruction()
authorKang Zhang <shkzhang@cn.ibm.com>
Wed, 22 Jul 2020 05:51:03 +0000 (05:51 +0000)
committerKang Zhang <shkzhang@cn.ibm.com>
Wed, 22 Jul 2020 05:51:03 +0000 (05:51 +0000)
commit9bbf0ecff36ef261d92d7d76a3b29d94f59fa65b
treefb6d1475d413f02cb384f47dc96e80c82f908989
parenta1b12a934d9958a24c8c6f1a5ff4b141fbabddbe
[PowerPC] Fix the implicit operands in PredicateInstruction()

Summary:
In the function `PPCInstrInfo::PredicateInstruction()`, we will replace
non-Predicate Instructions to Predicate Instruction. But we forget add
the new implicit operands the new Predicate Instruction needed. This
patch is to fix this.

Reviewed By: jsji, efriedma

Differential Revision: https://reviews.llvm.org/D82390
llvm/lib/Target/PowerPC/PPCInstrInfo.cpp
llvm/test/CodeGen/PowerPC/ifcvt.mir