HomePhabricator

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

Authored by andreadb on Mar 20 2019, 4:21 AM.

Description

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

This patch removes the following dag node opcodes from namespace X86ISD:

RDTSC_DAG,
RDTSCP_DAG,
RDPMC_DAG

The logic that expands RDTSC/RDPMC/XGETBV intrinsics is basically the same. The
only differences are:

RDTSC/RDTSCP don't implicitly read ECX.
RDTSCP also implicitly writes ECX.

I moved the common expansion logic into a helper function with the goal to get
rid of code repetition. That helper is now used for the expansion of
RDTSC/RDTSCP/RDPMC/XGETBV intrinsics.

No functional change intended.

Differential Revision: https://reviews.llvm.org/D59547

llvm-svn: 356546

Details

Committed
andreadbMar 20 2019, 4:21 AM
Differential Revision
D59547: [X86] Remove X86 specific dag nodes for RDTSC/RDTSCP/RDPMC. NFCI
Parents
rGd4c80012c044: Fix -Wdocumentation warning. NFCI.
Branches
Unknown
Tags
Unknown