Skip to content

Commit 70ea42f

Browse files
committed
fix unhandled opcode in arm64
1 parent 9c5e1ab commit 70ea42f

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

lib/Backend/Lower.cpp

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3023,15 +3023,16 @@ Lowerer::LowerRange(IR::Instr *instrStart, IR::Instr *instrEnd, bool defaultDoFa
30233023
instr->Remove();
30243024
break;
30253025

3026+
#endif //ENABLE_WASM
30263027
case Js::OpCode::SpeculatedLoadFence:
30273028
{
30283029
AssertOrFailFast(instr->m_kind == IR::InstrKindByteCodeUses);
3029-
IR::ByteCodeUsesInstr* bcuInstr = static_cast<IR::ByteCodeUsesInstr*>(instr);
3030-
// Most of the time we're not going to be able to remove any masking in a loop, and
3031-
// this instruction can be removed.
30323030
#ifdef _M_ARM
30333031
AssertOrFailFastMsg(false, "We shouldn't perform this hoisting on ARM");
30343032
#else
3033+
IR::ByteCodeUsesInstr* bcuInstr = static_cast<IR::ByteCodeUsesInstr*>(instr);
3034+
// Most of the time we're not going to be able to remove any masking in a loop, and
3035+
// this instruction can be removed.
30353036
if (bcuInstr->GetByteCodeUpwardExposedUsed() != nullptr && !bcuInstr->GetByteCodeUpwardExposedUsed()->IsEmpty())
30363037
{
30373038
// The generated code is:
@@ -3060,8 +3061,6 @@ Lowerer::LowerRange(IR::Instr *instrStart, IR::Instr *instrEnd, bool defaultDoFa
30603061
break;
30613062
}
30623063

3063-
#endif //ENABLE_WASM
3064-
30653064
default:
30663065
#ifdef ENABLE_WASM_SIMD
30673066
if (IsSimd128Opcode(instr->m_opcode))

0 commit comments

Comments
 (0)