Skip to content

Commit

Permalink
Use bitcast
Browse files Browse the repository at this point in the history
  • Loading branch information
ecnelises committed Apr 4, 2024
1 parent 1bdce09 commit 83cf5d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llvm/lib/CodeGen/SelectionDAG/LegalizeFloatTypes.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ SDValue DAGTypeLegalizer::SoftenFloatRes_EXTRACT_ELEMENT(SDNode *N) {
"In floats only ppcf128 can be extracted by element!");
return DAG.getNode(ISD::EXTRACT_ELEMENT, SDLoc(N),
N->getValueType(0).changeTypeToInteger(),
Src.getOperand(0), N->getOperand(1));
DAG.getBitcast(MVT::i128, Src), N->getOperand(1));
}

SDValue DAGTypeLegalizer::SoftenFloatRes_EXTRACT_VECTOR_ELT(SDNode *N, unsigned ResNo) {
Expand Down

0 comments on commit 83cf5d1

Please sign in to comment.