Skip to content

Commit

Permalink
[MERGE #5746 @sigatrev] Type specialize Dst of CmXX_A to Boolean
Browse files Browse the repository at this point in the history
Merge pull request #5746 from sigatrev:cmDst
  • Loading branch information
sigatrev committed Oct 8, 2018
2 parents 2f70be8 + 5428a7f commit aa9823c
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions lib/Backend/GlobOpt.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5104,6 +5104,18 @@ GlobOpt::ValueNumberDst(IR::Instr **pInstr, Value *src1Val, Value *src2Val)
case Js::OpCode::IsInst:
case Js::OpCode::LdTrue:
case Js::OpCode::LdFalse:
case Js::OpCode::CmEq_A:
case Js::OpCode::CmSrEq_A:
case Js::OpCode::CmNeq_A:
case Js::OpCode::CmSrNeq_A:
case Js::OpCode::CmLe_A:
case Js::OpCode::CmUnLe_A:
case Js::OpCode::CmLt_A:
case Js::OpCode::CmUnLt_A:
case Js::OpCode::CmGe_A:
case Js::OpCode::CmUnGe_A:
case Js::OpCode::CmGt_A:
case Js::OpCode::CmUnGt_A:
return this->NewGenericValue(ValueType::Boolean, dst);

case Js::OpCode::LdUndef:
Expand Down

0 comments on commit aa9823c

Please sign in to comment.