Skip to content

Commit

Permalink
Call simplifyIfacmpneHelper when simplifying an ifacmpne
Browse files Browse the repository at this point in the history
Calls simplifyIfacmpneHelper when simplifyISelectCompare has caused
the op to change to an ifacmpne.
  • Loading branch information
kevindean12 committed Nov 3, 2023
1 parent ec4c976 commit 78c12c6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion compiler/optimizer/OMRSimplifierHandlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14029,11 +14029,13 @@ TR::Node *ifacmpeqSimplifier(TR::Node * node, TR::Block * block, TR::Simplifier
// Perform a simplification for the case where an iselect is compared to a
// constant. This is done before simplifyChildren because it may allow
// further transformations to be done on the children.
simplifyISelectCompare(node, s);
bool opChangedToCmpNE = simplifyISelectCompare(node, s);

if (removeIfToFollowingBlock(node, block, s) == NULL)
return NULL;
s->simplifyChildren(node, block);
if (opChangedToCmpNE)
return simplifyIfacmpneHelper(node, block, s);

TR::Node * firstChild = node->getFirstChild(), * secondChild = node->getSecondChild();

Expand Down

0 comments on commit 78c12c6

Please sign in to comment.