[llvm] [PowerPC]redesign the target flags (PR #69695)

Amy Kwan via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 7 08:31:54 PST 2023


================
@@ -830,7 +816,9 @@ void PPCAsmPrinter::emitInstruction(const MachineInstr *MI) {
     // For TLS initial-exec and local-exec accesses on AIX, we have one TOC
     // entry for the symbol (with the variable offset), which is differentiated
     // by MO_TPREL_FLAG.
-    if (MO.getTargetFlags() & PPCII::MO_TPREL_FLAG) {
+    if (MO.getTargetFlags() == PPCII::MO_TPREL_FLAG ||
----------------
amy-kwan wrote:

It may be good to pull out `MO.getTargetFlags()` since we access it multiple times here.

https://github.com/llvm/llvm-project/pull/69695


More information about the llvm-commits mailing list