From 20b1f577eebd3021f039e3b3ff0fe62b1d1eceac Mon Sep 17 00:00:00 2001 From: "Bohao(Aaron) Wang" Date: Mon, 17 Jun 2019 09:35:53 -0400 Subject: [PATCH] remove unsigned ILopcode:TR::iflucmpeq and TR::ifiucmpeq from SwitchAnalyzer Remove the two unsigned opcodes from the SwitchAnalyzer.cpp. Issue: #3983 Signed-off-by: Bohao(Aaron) Wang --- compiler/optimizer/SwitchAnalyzer.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler/optimizer/SwitchAnalyzer.cpp b/compiler/optimizer/SwitchAnalyzer.cpp index a358512c1a..1d360c90b8 100644 --- a/compiler/optimizer/SwitchAnalyzer.cpp +++ b/compiler/optimizer/SwitchAnalyzer.cpp @@ -627,7 +627,7 @@ TR::Block *TR::SwitchAnalyzer::peelOffTheHottestValue(TR_LinkHead *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()) @@ -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); } } @@ -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)