diff --git a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp index 02db24e13cee..2c8a4183f17d 100644 --- a/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp +++ b/llvm/lib/Target/AArch64/AArch64ISelLowering.cpp @@ -40,12 +40,6 @@ using namespace llvm; STATISTIC(NumTailCalls, "Number of tail calls"); STATISTIC(NumShiftInserts, "Number of vector shift inserts"); -// Place holder until extr generation is tested fully. -static cl::opt -EnableAArch64ExtrGeneration("aarch64-extr-generation", cl::Hidden, - cl::desc("Allow AArch64 (or (shift)(shift))->extract"), - cl::init(true)); - static cl::opt EnableAArch64SlrGeneration("aarch64-shift-insert-generation", cl::Hidden, cl::desc("Allow AArch64 SLI/SRI formation"), @@ -7992,8 +7986,6 @@ static SDValue tryCombineToBSL(SDNode *N, static SDValue performORCombine(SDNode *N, TargetLowering::DAGCombinerInfo &DCI, const AArch64Subtarget *Subtarget) { // Attempt to form an EXTR from (or (shl VAL1, #N), (srl VAL2, #RegWidth-N)) - if (!EnableAArch64ExtrGeneration) - return SDValue(); SelectionDAG &DAG = DCI.DAG; EVT VT = N->getValueType(0); diff --git a/llvm/test/CodeGen/AArch64/arm64-extract.ll b/llvm/test/CodeGen/AArch64/arm64-extract.ll index 01984662d23a..6e07c4ce4ccb 100644 --- a/llvm/test/CodeGen/AArch64/arm64-extract.ll +++ b/llvm/test/CodeGen/AArch64/arm64-extract.ll @@ -1,4 +1,4 @@ -; RUN: llc -aarch64-extr-generation=true -verify-machineinstrs < %s \ +; RUN: llc -verify-machineinstrs < %s \ ; RUN: -march=arm64 | FileCheck %s define i64 @ror_i64(i64 %in) {