[PATCH] D59547: [X86] Remove X86 specific dag nodes for RDTSC/RDTSCP/RDPMC. NFCI
Andrea Di Biagio via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 19 12:52:39 PDT 2019
andreadb marked an inline comment as done.
andreadb 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).
----------------
craig.topper wrote:
> 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?
I think it is a good idea to just merge these two cases and simply write:
```
expandIntrinsicWChainHelper(Op.getNode(), dl, DAG, IntrData->Opc0, X86::ECX,
Subtarget, Results);
```
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D59547/new/
https://reviews.llvm.org/D59547
More information about the llvm-commits
mailing list