Skip to content

Commit faa7f33

Browse files
author
Meghana Gupta
committed
In GetConstantVar, expand float constant load case
1 parent aa5d7d3 commit faa7f33

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/Backend/GlobOpt.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6512,7 +6512,7 @@ GlobOpt::GetConstantVar(IR::Opnd *opnd, Value *val)
65126512
else if (valueInfo->IsFloat())
65136513
{
65146514
IR::Instr * defInstr = opnd->AsRegOpnd()->m_sym->GetInstrDef();
6515-
if (defInstr->m_opcode == Js::OpCode::LdC_F8_R8 && defInstr->GetSrc1()->IsFloatConstOpnd())
6515+
if ((defInstr->m_opcode == Js::OpCode::LdC_F8_R8 || defInstr->m_opcode == Js::OpCode::LdC_A_R8) && defInstr->GetSrc1()->IsFloatConstOpnd())
65166516
{
65176517
return Js::JavascriptNumber::ToVar(defInstr->GetSrc1()->AsFloatConstOpnd()->m_value);
65186518
}

0 commit comments

Comments
 (0)