Skip to content

Commit

Permalink
remove unsigned ILopcode:TR::iflucmpeq and TR::ifiucmpeq from SwitchA…
Browse files Browse the repository at this point in the history
…nalyzer

Remove the two unsigned opcodes from the SwitchAnalyzer.cpp.

Issue: #3983
Signed-off-by: Bohao(Aaron) Wang <aaronwang0407@gmail.com>
  • Loading branch information
wbh123456 committed Jun 17, 2019
1 parent c93c18e commit 20b1f57
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 20b1f57

Please sign in to comment.