While looking into issues with IfConverter, I noticed that
X86InstrInfo::isUnpredicatedTerminator matched its overriden
implementation in TargetInstrInfo::isUnpredicatedTerminator.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Adding @hfinkel for review because I think we can go further. The only other override of TargetInstrInfo::isUnpredicatedTerminator is PPCInstrInfo::isUnpredicatedTerminator and it almost matches, modulo a check for whether the MachineInstr isPredicable. I'm not sure if that's intentional, or bug, but adding return TargetInstrInfo::isUnpredicatedTerminator(MI); as the first statement in PPCInstrInfo::isUnpredicatedTerminator doesn't cause any failures in existing tests.