We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa5d7d3 commit faa7f33Copy full SHA for faa7f33
lib/Backend/GlobOpt.cpp
@@ -6512,7 +6512,7 @@ GlobOpt::GetConstantVar(IR::Opnd *opnd, Value *val)
6512
else if (valueInfo->IsFloat())
6513
{
6514
IR::Instr * defInstr = opnd->AsRegOpnd()->m_sym->GetInstrDef();
6515
- if (defInstr->m_opcode == Js::OpCode::LdC_F8_R8 && defInstr->GetSrc1()->IsFloatConstOpnd())
+ if ((defInstr->m_opcode == Js::OpCode::LdC_F8_R8 || defInstr->m_opcode == Js::OpCode::LdC_A_R8) && defInstr->GetSrc1()->IsFloatConstOpnd())
6516
6517
return Js::JavascriptNumber::ToVar(defInstr->GetSrc1()->AsFloatConstOpnd()->m_value);
6518
}
0 commit comments