Skip to content

Commit

Permalink
Merge pull request #4023 from wbh123456/switch
Browse files Browse the repository at this point in the history
Remove unsigned ILopcode: TR::iflucmpeq and TR::ifiucmpeq from SwitchAnalyzer
  • Loading branch information
vijaysun-omr authored Jun 20, 2019
2 parents a322157 + 20b1f57 commit 281fe47
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions compiler/optimizer/SwitchAnalyzer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -627,7 +627,7 @@ TR::Block *TR::SwitchAnalyzer::peelOffTheHottestValue(TR_LinkHead<SwitchInfo> *c

TR::Block *newBlock = NULL;

cmpOp = _isInt64 ? (_signed ? TR::iflcmpeq : TR::iflucmpeq) : (_signed ? TR::ificmpeq : TR::ifiucmpeq);
cmpOp = _isInt64 ? TR::iflcmpeq : TR::ificmpeq;
newBlock = addIfBlock(cmpOp, topNode->_min, topNode->_target);

if (trace())
Expand Down Expand Up @@ -960,7 +960,7 @@ TR::Block *TR::SwitchAnalyzer::binSearch(SwitchInfo *startNode, SwitchInfo *endN
else
{
addGotoBlock(_defaultDest);
cmpOp = _isInt64 ? (_signed ? TR::iflcmpeq : TR::iflucmpeq) : (_signed ? TR::ificmpeq : TR::ifiucmpeq);
cmpOp = _isInt64 ? TR::iflcmpeq : TR::ificmpeq;
return addIfBlock (cmpOp, endNode->_max, endNode->_target);
}
}
Expand Down Expand Up @@ -1175,7 +1175,7 @@ TR::Block *TR::SwitchAnalyzer::linearSearch(SwitchInfo *start)
{
if (cursor->_kind == Unique)
{
cmpOp = _isInt64 ? (_signed ? TR::iflcmpeq : TR::iflucmpeq) : (_signed ? TR::ificmpeq : TR::ifiucmpeq);
cmpOp = _isInt64 ? TR::iflcmpeq : TR::ificmpeq;
newBlock = addIfBlock(cmpOp, cursor->_min, cursor->_target);
}
else if (cursor->_kind == Range)
Expand Down

0 comments on commit 281fe47

Please sign in to comment.