Skip to content

Commit

Permalink
Merge pull request #15709 from r30shah/fixEscapeAnalysisVector
Browse files Browse the repository at this point in the history
Fix EA bug in generating VSPLATS
  • Loading branch information
hzongaro authored Aug 17, 2022
2 parents c0d5f9c + 9dee936 commit 022441e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions runtime/compiler/optimizer/EscapeAnalysis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3871,7 +3871,7 @@ void TR_EscapeAnalysis::referencedField(TR::Node *base, TR::Node *field, bool is
int N = 1;
if (refType.isVector())
{
fieldType = refType.vectorToScalar();
fieldType = refType.getVectorElementType();
N = TR::Symbol::convertTypeToSize(refType)/TR::Symbol::convertTypeToSize(fieldType) ;
}
for (int j = 0; j < N; j++)
Expand Down Expand Up @@ -6242,7 +6242,7 @@ TR::Node *TR_EscapeAnalysis::createConst(TR::Compilation *comp, TR::Node *node,
if (type.isVector())
{
result = TR::Node::create(node, TR::ILOpCode::createVectorOpCode(TR::vsplats, type), 1);
result->setAndIncChild(0, TR::Node::create(node, comp->il.opCodeForConst(type), value));
result->setAndIncChild(0, TR::Node::create(node, comp->il.opCodeForConst(type.getVectorElementType()), value));
}
else
{
Expand Down

0 comments on commit 022441e

Please sign in to comment.