[llvm] [PowerPC]redesign the target flags (PR #69695)
Amy Kwan via llvm-commits
llvm-commits at lists.llvm.org
Tue Nov 7 08:31:53 PST 2023
================
@@ -1539,7 +1528,9 @@ void PPCAsmPrinter::emitInstruction(const MachineInstr *MI) {
// with an immediate operand having the MO_TPREL_FLAG. Such an instruction
// does not otherwise arise.
const MachineOperand &MO = MI->getOperand(2);
- if ((MO.getTargetFlags() & PPCII::MO_TPREL_FLAG) != 0) {
+ if (MO.getTargetFlags() == PPCII::MO_TPREL_FLAG ||
----------------
amy-kwan wrote:
Perhaps the same here, we could pull out `MO.getTargetFlags()` due to multiple accesses.
https://github.com/llvm/llvm-project/pull/69695
More information about the llvm-commits
mailing list