[PATCH] D71921: [PowerPC] Use isPredicable bits in instruction definitions

Jinsong Ji via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 30 18:50:42 PST 2019


jsji added a comment.



> I checked all references to `isPredicable` in codebase:
> 
> - Instr doc generation uses the bit (this is non-functional)
> - CodeGen tablegen itself uses it
> - Both `TargetInstrInfo::isUnpredicatedTerminator` and `TargetInstrInfo::PredicateInstruction` references the method, but PPC overrides them and doesn't use it.
> - `MachineInstr::findFirstPredOperandIdx` references it, but only ARM and AMDGPU invokes it
> - Implicit null check <https://github.com/llvm/llvm-project/blob/266cd7717c8126213a7560d26da5495053be90c0/llvm/lib/CodeGen/ImplicitNullChecks.cpp#L375> and machine sink <https://github.com/llvm/llvm-project/blob/266cd7717c8126213a7560d26da5495053be90c0/llvm/lib/CodeGen/MachineSink.cpp#L773> have referenced it. However, this patch won't touch instrs may load or store, so result of expression would never change
> - Other references are for other platforms

So, I assume you are saying this is *NFC* for PowerPC, right?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D71921/new/

https://reviews.llvm.org/D71921





More information about the llvm-commits mailing list