[PATCH] D59547: [X86] Remove X86 specific dag nodes for RDTSC/RDTSCP/RDPMC. NFCI

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 19 12:45:22 PDT 2019


craig.topper added inline comments.


================
Comment at: lib/Target/X86/X86ISelLowering.cpp:23090
     SmallVector<SDValue, 2> Results;
-    getReadPerformanceCounter(Op.getNode(), dl, DAG, Subtarget, Results);
+    // Handles the lowering of builtin intrinsics that read performance monitor
+    // counters (x86_rdpmc).
----------------
I can't decide if these should really be in the X86IntrinsicsInfo.h table. We're not using the Opc0 field. So we're treating them as one offs. Which makes me wonder if they shouldn't just be in the switch that is used when the table lookup fails.

Or maybe we should merge RDPMC and XGETBV using the Opc0 field?


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

https://reviews.llvm.org/D59547





More information about the llvm-commits mailing list