For some reason extract_vector_elt is sometimes allowed to have
a different result type than the vector element type.
Details
Details
- Reviewers
hfinkel
Diff Detail
Diff Detail
Event Timeline
lib/CodeGen/SelectionDAG/DAGCombiner.cpp | ||
---|---|---|
12411 | Instead of disabling the transformation, you should be able to replace: return InVec.getOperand(1); with: return DAG.getAnyExtOrTrunc(InVec.getOperand(1), SDLoc(N), NVT); (I double-checked DAGTypeLegalizer::ScalarizeVecOp_EXTRACT_VECTOR_ELT, and it uses an ANY_EXTEND for this case). |
Instead of disabling the transformation, you should be able to replace:
with:
(I double-checked DAGTypeLegalizer::ScalarizeVecOp_EXTRACT_VECTOR_ELT, and it uses an ANY_EXTEND for this case).