[llvm] ae321fa - [X86] Remove a redundant (scalar_to_vector (extract_vector_elt X))) in LowerUINT_TO_FP_i32. NFCI
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 28 22:06:35 PST 2019
Author: Craig Topper
Date: 2019-12-28T21:49:22-08:00
New Revision: ae321faeedd789c7658fa3484fb51eb03911b404
URL: https://github.com/llvm/llvm-project/commit/ae321faeedd789c7658fa3484fb51eb03911b404
DIFF: https://github.com/llvm/llvm-project/commit/ae321faeedd789c7658fa3484fb51eb03911b404.diff
LOG: [X86] Remove a redundant (scalar_to_vector (extract_vector_elt X))) in LowerUINT_TO_FP_i32. NFCI
Added:
Modified:
llvm/lib/Target/X86/X86ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index e71801584ebb..b7018398c4b0 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -18873,15 +18873,10 @@ static SDValue LowerUINT_TO_FP_i32(SDValue Op, SelectionDAG &DAG,
// Zero out the upper parts of the register.
Load = getShuffleVectorZeroOrUndef(Load, 0, true, Subtarget, DAG);
- Load = DAG.getNode(ISD::EXTRACT_VECTOR_ELT, dl, MVT::f64,
- DAG.getBitcast(MVT::v2f64, Load),
- DAG.getIntPtrConstant(0, dl));
-
// Or the load with the bias.
SDValue Or = DAG.getNode(
ISD::OR, dl, MVT::v2i64,
- DAG.getBitcast(MVT::v2i64,
- DAG.getNode(ISD::SCALAR_TO_VECTOR, dl, MVT::v2f64, Load)),
+ DAG.getBitcast(MVT::v2i64, Load),
DAG.getBitcast(MVT::v2i64,
DAG.getNode(ISD::SCALAR_TO_VECTOR, dl, MVT::v2f64, Bias)));
Or =
More information about the llvm-commits
mailing list