Skip to content

Truly independent web browser

Flap: Place the code after a loop directly after the loop

Andreas Klinga3b2f9f621a9
diff --git a/Libraries/LibJS/Flap/src/low_ir/cfg.rs b/Libraries/LibJS/Flap/src/low_ir/cfg.rs
index 9371bf5bcc3..b0321d666a4 100644
--- a/Libraries/LibJS/Flap/src/low_ir/cfg.rs
+++ b/Libraries/LibJS/Flap/src/low_ir/cfg.rs
@@ -313,9 +313,183 @@ impl<O: ControlFlowOperand, C: ControlFlowOpcode> ControlFlowGraph<O, C> {
}
}
}
+ let hot = self.place_loop_exits_after_loops(hot);
Ok(BlockLayout { hot, cold })
}
+ /// Moves the code where each loop of `blocks` continues to directly after
+ /// the loop's back edge, so that no block of other code sits between a
+ /// loop and its exit. Blocks move in whole fallthrough chains, and a chain
+ /// that is part of another loop stays where it is.
+ fn place_loop_exits_after_loops(&self, blocks: Vec<BlockId>) -> Vec<BlockId> {
+ let mut chains: Vec<Vec<BlockId>> = Vec::new();
+ let mut current = Vec::new();
+ for block_id in blocks {
+ current.push(block_id);
+ if self.blocks[block_id.0]
+ .instructions
+ .last()
+ .unwrap()
+ .opcode
+ .description()
+ .terminal
+ {
+ chains.push(core::mem::take(&mut current));
+ }
+ }
+ if !current.is_empty() {
+ chains.push(current);
+ }
+ // NB: A move can undo an earlier one, so the number of moves is bounded.
+ for _ in 0..chains.len() {
+ let mut position = HashMap::default();
+ let mut chain_of_block = HashMap::default();
+ for (index, block_id) in chains
+ .iter()
+ .enumerate()
+ .flat_map(|(index, chain)| chain.iter().map(move |block_id| (index, block_id)))
+ {
+ position.insert(*block_id, position.len());
+ chain_of_block.insert(*block_id, index);
+ }
+ // A loop is a back edge: an edge to a block at the same or an earlier position, the loop's header.
+ let loops = chains
+ .iter()
+ .flatten()
+ .flat_map(|source| {
+ self.blocks[source.0]
+ .successors
+ .iter()
+ .filter(|edge| {
+ position
+ .get(&edge.target)
+ .is_some_and(|target| target <= &position[source])
+ })
+ .map(|edge| (edge.target, chain_of_block[source]))
+ })
+ .collect::<Vec<_>>();
+ let in_another_loop = |chain: usize, header_chain: usize, latch: usize| {
+ loops.iter().any(|&(other_header, other_latch)| {
+ let other_header = chain_of_block[&other_header];
+ other_header != header_chain
+ && other_header > latch
+ && (other_header..=other_latch).contains(&chain)
+ })
+ };
+ // How many edges enter a block from an earlier position, which a back edge does not.
+ let forward_predecessor_count = |target: BlockId| {
+ chains
+ .iter()
+ .flatten()
+ .filter(|source| {
+ self.blocks[source.0]
+ .successors
+ .iter()
+ .any(|edge| edge.target == target)
+ && position[*source] < position[&target]
+ })
+ .count()
+ };
+ // NB: A loop with several latches continues after its last one.
+ let mut last_latch_of_header = HashMap::default();
+ for &(header, latch) in &loops {
+ let last_latch = last_latch_of_header.entry(header).or_insert(latch);
+ *last_latch = (*last_latch).max(latch);
+ }
+ let mut last_latches = loops
+ .iter()
+ .filter(|&&(header, latch)| last_latch_of_header[&header] == latch);
+ let movable = last_latches.find_map(|&(header, latch)| {
+ let header_chain = chain_of_block[&header];
+ let exit = self.blocks[header.0]
+ .successors
+ .iter()
+ .map(|edge| edge.target)
+ .find(|target| chain_of_block.get(target).is_some_and(|&chain| chain > latch))?;
+ // NB: Only chains that start with their entry move, so that no implicit successor changes.
+ let mut trace = vec![chain_of_block[&exit]];
+ let mut entry = exit;
+ loop {
+ let chain = *trace.last().unwrap();
+ let falls_through = !self.blocks[chains[chain].last().unwrap().0]
+ .instructions
+ .last()
+ .unwrap()
+ .opcode
+ .description()
+ .terminal;
+ if chains[chain][0] != entry || falls_through {
+ trace.pop();
+ break;
+ }
+ // A loop that the trace enters at its header moves as a whole, and ends the trace.
+ let entered_loop_end = loops
+ .iter()
+ .filter(|&&(other_header, _)| other_header == entry)
+ .map(|&(_, other_latch)| other_latch)
+ .max();
+ if let Some(end) = entered_loop_end {
+ // NB: The chains of the loop move only if no other loop crosses its bounds or holds it
+ // without holding the latch, and if the last one does not fall through.
+ let closed = loops.iter().all(|&(other_header, other_latch)| {
+ let other_header = chain_of_block[&other_header];
+ let crosses = (chain..=end).contains(&other_header) != (chain..=end).contains(&other_latch);
+ let holds = (latch + 1..chain).contains(&other_header) && other_latch > end;
+ !crosses && !holds
+ }) && self.blocks[chains[end].last().unwrap().0]
+ .instructions
+ .last()
+ .unwrap()
+ .opcode
+ .description()
+ .terminal;
+ if closed {
+ trace.extend(chain + 1..=end);
+ } else {
+ trace.pop();
+ }
+ break;
+ }
+ if in_another_loop(chain, header_chain, latch) {
+ trace.pop();
+ break;
+ }
+ let last = chains[chain].last().unwrap();
+ let [edge] = self.blocks[last.0].successors.as_slice() else {
+ break;
+ };
+ let Some(&next) = chain_of_block.get(&edge.target) else {
+ break;
+ };
+ if next <= latch || trace.contains(&next) || forward_predecessor_count(edge.target) != 1 {
+ break;
+ }
+ entry = edge.target;
+ trace.push(next);
+ }
+ let already_placed = trace
+ .iter()
+ .enumerate()
+ .all(|(offset, &chain)| chain == latch + 1 + offset);
+ (!trace.is_empty() && !already_placed).then_some((latch, trace))
+ });
+ let Some((latch, trace)) = movable else {
+ break;
+ };
+ let mut moved = Vec::new();
+ for &chain in trace.iter().rev() {
+ moved.push(core::mem::take(&mut chains[chain]));
+ }
+ moved.reverse();
+ chains.retain(|chain| !chain.is_empty());
+ // NB: The trace only has chains after the latch, so the latch keeps its index.
+ for (offset, chain) in moved.into_iter().enumerate() {
+ chains.insert(latch + 1 + offset, chain);
+ }
+ }
+ chains.into_iter().flatten().collect()
+ }
+
/// Tidy the graph after an edit: thread branches through jump-only blocks,
/// drop jump blocks nothing reaches, and drop blocks control cannot reach.
///
@@ -1084,6 +1258,80 @@ mod tests {
assert_eq!(layout.cold, vec![BlockId(1), BlockId(2)]);
}
+ #[test]
+ fn places_the_exit_of_a_loop_with_two_latches_after_the_last_latch() {
+ let graph = ControlFlowGraph::from_instructions(vec![
+ instruction(Operation::Label, vec![label(".header")]),
+ instruction(
+ Operation::branch_zero(IntegerWidth::U64, ZeroCondition::Zero),
+ vec![Operand::VirtualRegister("value".into()), label(".exit")],
+ ),
+ instruction(
+ Operation::branch_zero(IntegerWidth::U64, ZeroCondition::Zero),
+ vec![Operand::VirtualRegister("other".into()), label(".second_latch")],
+ ),
+ instruction(
+ Operation::Control(ControlOperation::JumpLabel),
+ vec![label(".first_latch")],
+ ),
+ instruction(Operation::Label, vec![label(".first_latch")]),
+ instruction(Operation::Control(ControlOperation::JumpLabel), vec![label(".header")]),
+ instruction(Operation::Label, vec![label(".second_latch")]),
+ instruction(Operation::Control(ControlOperation::JumpLabel), vec![label(".header")]),
+ instruction(Operation::Label, vec![label(".exit")]),
+ instruction(Operation::Control(ControlOperation::Exit), vec![]),
+ ])
+ .unwrap();
+ let layout = graph.layout_hot_and_cold().unwrap();
+
+ assert_eq!(
+ layout.hot,
+ (0..graph.blocks.len()).map(BlockId).collect::<Vec<_>>(),
+ "the exit stays after the second latch"
+ );
+ }
+
+ #[test]
+ fn keeps_a_loop_exit_that_is_a_nested_loop_inside_its_enclosing_loop() {
+ let graph = ControlFlowGraph::from_instructions(vec![
+ instruction(Operation::Label, vec![label(".header")]),
+ instruction(
+ Operation::branch_zero(IntegerWidth::U64, ZeroCondition::Zero),
+ vec![Operand::VirtualRegister("value".into()), label(".inner_header")],
+ ),
+ instruction(Operation::Label, vec![label(".latch")]),
+ instruction(Operation::Control(ControlOperation::JumpLabel), vec![label(".header")]),
+ instruction(Operation::Label, vec![label(".outer_header")]),
+ instruction(
+ Operation::Control(ControlOperation::JumpLabel),
+ vec![label(".inner_header")],
+ ),
+ instruction(Operation::Label, vec![label(".inner_header")]),
+ instruction(
+ Operation::branch_zero(IntegerWidth::U64, ZeroCondition::Zero),
+ vec![Operand::VirtualRegister("other".into()), label(".outer_latch")],
+ ),
+ instruction(Operation::Label, vec![label(".inner_latch")]),
+ instruction(
+ Operation::Control(ControlOperation::JumpLabel),
+ vec![label(".inner_header")],
+ ),
+ instruction(Operation::Label, vec![label(".outer_latch")]),
+ instruction(
+ Operation::Control(ControlOperation::JumpLabel),
+ vec![label(".outer_header")],
+ ),
+ ])
+ .unwrap();
+ let layout = graph.layout_hot_and_cold().unwrap();
+
+ assert_eq!(
+ layout.hot,
+ (0..graph.blocks.len()).map(BlockId).collect::<Vec<_>>(),
+ "the inner loop stays inside the outer loop"
+ );
+ }
+
#[test]
fn rejects_cold_fallthrough() {
let graph = ControlFlowGraph::from_instructions(vec![
diff --git a/Libraries/LibJS/Flap/tests/interpreter-assembly/aarch64.S b/Libraries/LibJS/Flap/tests/interpreter-assembly/aarch64.S
index 7f31eabb8a9..d25e109df8c 100644
--- a/Libraries/LibJS/Flap/tests/interpreter-assembly/aarch64.S
+++ b/Libraries/LibJS/Flap/tests/interpreter-assembly/aarch64.S
@@ -2154,6 +2154,12 @@ asm_handler_JumpLooselyEquals:
cmp x1, x9
b.eq .Lasm_JumpLooselyEquals.ssa_block_31
b .Lasm_JumpLooselyEquals.ssa_block_4
+.Lasm_JumpLooselyEquals.ssa_block_2:
+ ldur w0, [x21, #5]
+ add x21, x26, w0, uxtw
+ ldrb w9, [x21]
+ ldr x10, [x19, x9, lsl #3]
+ br x10
.Lasm_JumpLooselyEquals.ssa_block_6:
mov x4, x1
and w4, w4, #0xfffe
@@ -2202,12 +2208,6 @@ asm_handler_JumpLooselyEquals:
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
-.Lasm_JumpLooselyEquals.ssa_block_2:
- ldur w0, [x21, #5]
- add x21, x26, w0, uxtw
- ldrb w9, [x21]
- ldr x10, [x19, x9, lsl #3]
- br x10
asm_handler_JumpLooselyEquals_hot_end:
.p2align 4
@@ -2250,6 +2250,12 @@ asm_handler_JumpLooselyInequals:
cmp x1, x9
b.eq .Lasm_JumpLooselyInequals.ssa_block_31
b .Lasm_JumpLooselyInequals.ssa_block_4
+.Lasm_JumpLooselyInequals.ssa_block_3:
+ ldur w0, [x21, #9]
+ add x21, x26, w0, uxtw
+ ldrb w9, [x21]
+ ldr x10, [x19, x9, lsl #3]
+ br x10
.Lasm_JumpLooselyInequals.ssa_block_6:
mov x4, x1
and w4, w4, #0xfffe
@@ -2298,12 +2304,6 @@ asm_handler_JumpLooselyInequals:
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
-.Lasm_JumpLooselyInequals.ssa_block_3:
- ldur w0, [x21, #9]
- add x21, x26, w0, uxtw
- ldrb w9, [x21]
- ldr x10, [x19, x9, lsl #3]
- br x10
asm_handler_JumpLooselyInequals_hot_end:
.p2align 4
@@ -2346,6 +2346,12 @@ asm_handler_JumpStrictlyEquals:
cmp x1, x9
b.eq .Lasm_JumpStrictlyEquals.ssa_block_29
b .Lasm_JumpStrictlyEquals.ssa_block_4
+.Lasm_JumpStrictlyEquals.ssa_block_2:
+ ldur w0, [x21, #5]
+ add x21, x26, w0, uxtw
+ ldrb w9, [x21]
+ ldr x10, [x19, x9, lsl #3]
+ br x10
.Lasm_JumpStrictlyEquals.ssa_block_6:
cmp x1, x22
b.eq .Lasm_JumpStrictlyEquals.ssa_block_8
@@ -2395,12 +2401,6 @@ asm_handler_JumpStrictlyEquals:
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
-.Lasm_JumpStrictlyEquals.ssa_block_2:
- ldur w0, [x21, #5]
- add x21, x26, w0, uxtw
- ldrb w9, [x21]
- ldr x10, [x19, x9, lsl #3]
- br x10
asm_handler_JumpStrictlyEquals_hot_end:
.p2align 4
@@ -2443,6 +2443,12 @@ asm_handler_JumpStrictlyInequals:
cmp x1, x9
b.eq .Lasm_JumpStrictlyInequals.ssa_block_29
b .Lasm_JumpStrictlyInequals.ssa_block_4
+.Lasm_JumpStrictlyInequals.ssa_block_3:
+ ldur w0, [x21, #9]
+ add x21, x26, w0, uxtw
+ ldrb w9, [x21]
+ ldr x10, [x19, x9, lsl #3]
+ br x10
.Lasm_JumpStrictlyInequals.ssa_block_6:
cmp x1, x22
b.eq .Lasm_JumpStrictlyInequals.ssa_block_8
@@ -2492,12 +2498,6 @@ asm_handler_JumpStrictlyInequals:
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
-.Lasm_JumpStrictlyInequals.ssa_block_3:
- ldur w0, [x21, #9]
- add x21, x26, w0, uxtw
- ldrb w9, [x21]
- ldr x10, [x19, x9, lsl #3]
- br x10
asm_handler_JumpStrictlyInequals_hot_end:
.p2align 4
@@ -2804,6 +2804,12 @@ asm_handler_JumpLooselyEqualsLoop:
cmp x1, x9
b.eq .Lasm_JumpLooselyEqualsLoop.ssa_block_31
b .Lasm_JumpLooselyEqualsLoop.ssa_block_4
+.Lasm_JumpLooselyEqualsLoop.ssa_block_2:
+ ldur w0, [x21, #5]
+ add x21, x26, w0, uxtw
+ ldrb w9, [x21]
+ ldr x10, [x19, x9, lsl #3]
+ br x10
.Lasm_JumpLooselyEqualsLoop.ssa_block_6:
mov x4, x1
and w4, w4, #0xfffe
@@ -2852,12 +2858,6 @@ asm_handler_JumpLooselyEqualsLoop:
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
-.Lasm_JumpLooselyEqualsLoop.ssa_block_2:
- ldur w0, [x21, #5]
- add x21, x26, w0, uxtw
- ldrb w9, [x21]
- ldr x10, [x19, x9, lsl #3]
- br x10
asm_handler_JumpLooselyEqualsLoop_hot_end:
.p2align 4
@@ -2900,6 +2900,12 @@ asm_handler_JumpLooselyInequalsLoop:
cmp x1, x9
b.eq .Lasm_JumpLooselyInequalsLoop.ssa_block_31
b .Lasm_JumpLooselyInequalsLoop.ssa_block_4
+.Lasm_JumpLooselyInequalsLoop.ssa_block_3:
+ ldur w0, [x21, #9]
+ add x21, x26, w0, uxtw
+ ldrb w9, [x21]
+ ldr x10, [x19, x9, lsl #3]
+ br x10
.Lasm_JumpLooselyInequalsLoop.ssa_block_6:
mov x4, x1
and w4, w4, #0xfffe
@@ -2948,12 +2954,6 @@ asm_handler_JumpLooselyInequalsLoop:
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
-.Lasm_JumpLooselyInequalsLoop.ssa_block_3:
- ldur w0, [x21, #9]
- add x21, x26, w0, uxtw
- ldrb w9, [x21]
- ldr x10, [x19, x9, lsl #3]
- br x10
asm_handler_JumpLooselyInequalsLoop_hot_end:
.p2align 4
@@ -2996,6 +2996,12 @@ asm_handler_JumpStrictlyEqualsLoop:
cmp x1, x9
b.eq .Lasm_JumpStrictlyEqualsLoop.ssa_block_29
b .Lasm_JumpStrictlyEqualsLoop.ssa_block_4
+.Lasm_JumpStrictlyEqualsLoop.ssa_block_2:
+ ldur w0, [x21, #5]
+ add x21, x26, w0, uxtw
+ ldrb w9, [x21]
+ ldr x10, [x19, x9, lsl #3]
+ br x10
.Lasm_JumpStrictlyEqualsLoop.ssa_block_6:
cmp x1, x22
b.eq .Lasm_JumpStrictlyEqualsLoop.ssa_block_8
@@ -3045,12 +3051,6 @@ asm_handler_JumpStrictlyEqualsLoop:
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
-.Lasm_JumpStrictlyEqualsLoop.ssa_block_2:
- ldur w0, [x21, #5]
- add x21, x26, w0, uxtw
- ldrb w9, [x21]
- ldr x10, [x19, x9, lsl #3]
- br x10
asm_handler_JumpStrictlyEqualsLoop_hot_end:
.p2align 4
@@ -3093,6 +3093,12 @@ asm_handler_JumpStrictlyInequalsLoop:
cmp x1, x9
b.eq .Lasm_JumpStrictlyInequalsLoop.ssa_block_29
b .Lasm_JumpStrictlyInequalsLoop.ssa_block_4
+.Lasm_JumpStrictlyInequalsLoop.ssa_block_3:
+ ldur w0, [x21, #9]
+ add x21, x26, w0, uxtw
+ ldrb w9, [x21]
+ ldr x10, [x19, x9, lsl #3]
+ br x10
.Lasm_JumpStrictlyInequalsLoop.ssa_block_6:
cmp x1, x22
b.eq .Lasm_JumpStrictlyInequalsLoop.ssa_block_8
@@ -3142,12 +3148,6 @@ asm_handler_JumpStrictlyInequalsLoop:
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
-.Lasm_JumpStrictlyInequalsLoop.ssa_block_3:
- ldur w0, [x21, #9]
- add x21, x26, w0, uxtw
- ldrb w9, [x21]
- ldr x10, [x19, x9, lsl #3]
- br x10
asm_handler_JumpStrictlyInequalsLoop_hot_end:
.p2align 4
@@ -4581,6 +4581,15 @@ asm_handler_StrictlyEquals:
cmp x1, x9
b.eq .Lasm_StrictlyEquals.ssa_block_29
b .Lasm_StrictlyEquals.ssa_block_4
+.Lasm_StrictlyEquals.ssa_block_2:
+ ldrb w9, [x21, #3]
+ movz x10, #0x1, lsl #0
+ movk x10, #0x7ff9, lsl #48
+ str x10, [x27, x9, lsl #3]
+ ldrb w9, [x21, #6]
+ add x21, x21, #6
+ ldr x10, [x19, x9, lsl #3]
+ br x10
.Lasm_StrictlyEquals.ssa_block_6:
cmp x1, x22
b.eq .Lasm_StrictlyEquals.ssa_block_8
@@ -4632,15 +4641,6 @@ asm_handler_StrictlyEquals:
add x21, x21, #6
ldr x10, [x19, x9, lsl #3]
br x10
-.Lasm_StrictlyEquals.ssa_block_2:
- ldrb w9, [x21, #3]
- movz x10, #0x1, lsl #0
- movk x10, #0x7ff9, lsl #48
- str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #6]
- add x21, x21, #6
- ldr x10, [x19, x9, lsl #3]
- br x10
asm_handler_StrictlyEquals_hot_end:
.p2align 4
@@ -4683,6 +4683,14 @@ asm_handler_StrictlyInequals:
cmp x1, x9
b.eq .Lasm_StrictlyInequals.ssa_block_29
b .Lasm_StrictlyInequals.ssa_block_4
+.Lasm_StrictlyInequals.ssa_block_3:
+ ldrb w9, [x21, #3]
+ movz x10, #0x7ff9, lsl #48
+ str x10, [x27, x9, lsl #3]
+ ldrb w9, [x21, #6]
+ add x21, x21, #6
+ ldr x10, [x19, x9, lsl #3]
+ br x10
.Lasm_StrictlyInequals.ssa_block_6:
cmp x1, x22
b.eq .Lasm_StrictlyInequals.ssa_block_8
@@ -4735,14 +4743,6 @@ asm_handler_StrictlyInequals:
add x21, x21, #6
ldr x10, [x19, x9, lsl #3]
br x10
-.Lasm_StrictlyInequals.ssa_block_3:
- ldrb w9, [x21, #3]
- movz x10, #0x7ff9, lsl #48
- str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #6]
- add x21, x21, #6
- ldr x10, [x19, x9, lsl #3]
- br x10
asm_handler_StrictlyInequals_hot_end:
.p2align 4
@@ -4868,6 +4868,15 @@ asm_handler_LooselyEquals:
cmp x1, x9
b.eq .Lasm_LooselyEquals.ssa_block_31
b .Lasm_LooselyEquals.ssa_block_4
+.Lasm_LooselyEquals.ssa_block_2:
+ ldrb w9, [x21, #3]
+ movz x10, #0x1, lsl #0
+ movk x10, #0x7ff9, lsl #48
+ str x10, [x27, x9, lsl #3]
+ ldrb w9, [x21, #6]
+ add x21, x21, #6
+ ldr x10, [x19, x9, lsl #3]
+ br x10
.Lasm_LooselyEquals.ssa_block_6:
mov x4, x1
and w4, w4, #0xfffe
@@ -4918,15 +4927,6 @@ asm_handler_LooselyEquals:
add x21, x21, #6
ldr x10, [x19, x9, lsl #3]
br x10
-.Lasm_LooselyEquals.ssa_block_2:
- ldrb w9, [x21, #3]
- movz x10, #0x1, lsl #0
- movk x10, #0x7ff9, lsl #48
- str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #6]
- add x21, x21, #6
- ldr x10, [x19, x9, lsl #3]
- br x10
asm_handler_LooselyEquals_hot_end:
.p2align 4
@@ -4969,6 +4969,14 @@ asm_handler_LooselyInequals:
cmp x1, x9
b.eq .Lasm_LooselyInequals.ssa_block_31
b .Lasm_LooselyInequals.ssa_block_4
+.Lasm_LooselyInequals.ssa_block_3:
+ ldrb w9, [x21, #3]
+ movz x10, #0x7ff9, lsl #48
+ str x10, [x27, x9, lsl #3]
+ ldrb w9, [x21, #6]
+ add x21, x21, #6
+ ldr x10, [x19, x9, lsl #3]
+ br x10
.Lasm_LooselyInequals.ssa_block_6:
mov x4, x1
and w4, w4, #0xfffe
@@ -5020,14 +5028,6 @@ asm_handler_LooselyInequals:
add x21, x21, #6
ldr x10, [x19, x9, lsl #3]
br x10
-.Lasm_LooselyInequals.ssa_block_3:
- ldrb w9, [x21, #3]
- movz x10, #0x7ff9, lsl #48
- str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #6]
- add x21, x21, #6
- ldr x10, [x19, x9, lsl #3]
- br x10
asm_handler_LooselyInequals_hot_end:
.p2align 4
@@ -7381,6 +7381,15 @@ asm_handler_StrictlyEqualsRhsInt32:
cmp x2, x9
b.eq .Lasm_StrictlyEqualsRhsInt32.ssa_block_29
b .Lasm_StrictlyEqualsRhsInt32.ssa_block_4
+.Lasm_StrictlyEqualsRhsInt32.ssa_block_2:
+ ldrb w9, [x21, #3]
+ movz x10, #0x1, lsl #0
+ movk x10, #0x7ff9, lsl #48
+ str x10, [x27, x9, lsl #3]
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
+ ldr x10, [x19, x9, lsl #3]
+ br x10
.Lasm_StrictlyEqualsRhsInt32.ssa_block_6:
cmp x2, x22
b.eq .Lasm_StrictlyEqualsRhsInt32.ssa_block_8
@@ -7434,15 +7443,6 @@ asm_handler_StrictlyEqualsRhsInt32:
add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
-.Lasm_StrictlyEqualsRhsInt32.ssa_block_2:
- ldrb w9, [x21, #3]
- movz x10, #0x1, lsl #0
- movk x10, #0x7ff9, lsl #48
- str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #9]
- add x21, x21, #9
- ldr x10, [x19, x9, lsl #3]
- br x10
asm_handler_StrictlyEqualsRhsInt32_hot_end:
.p2align 4
@@ -7483,6 +7483,14 @@ asm_handler_StrictlyInequalsRhsInt32:
cmp x2, x9
b.eq .Lasm_StrictlyInequalsRhsInt32.ssa_block_29
b .Lasm_StrictlyInequalsRhsInt32.ssa_block_4
+.Lasm_StrictlyInequalsRhsInt32.ssa_block_3:
+ ldrb w9, [x21, #3]
+ movz x10, #0x7ff9, lsl #48
+ str x10, [x27, x9, lsl #3]
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
+ ldr x10, [x19, x9, lsl #3]
+ br x10
.Lasm_StrictlyInequalsRhsInt32.ssa_block_6:
cmp x2, x22
b.eq .Lasm_StrictlyInequalsRhsInt32.ssa_block_8
@@ -7537,14 +7545,6 @@ asm_handler_StrictlyInequalsRhsInt32:
add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
-.Lasm_StrictlyInequalsRhsInt32.ssa_block_3:
- ldrb w9, [x21, #3]
- movz x10, #0x7ff9, lsl #48
- str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #9]
- add x21, x21, #9
- ldr x10, [x19, x9, lsl #3]
- br x10
asm_handler_StrictlyInequalsRhsInt32_hot_end:
.p2align 4
@@ -7585,6 +7585,15 @@ asm_handler_LooselyEqualsRhsInt32:
cmp x2, x9
b.eq .Lasm_LooselyEqualsRhsInt32.ssa_block_31
b .Lasm_LooselyEqualsRhsInt32.ssa_block_4
+.Lasm_LooselyEqualsRhsInt32.ssa_block_2:
+ ldrb w9, [x21, #3]
+ movz x10, #0x1, lsl #0
+ movk x10, #0x7ff9, lsl #48
+ str x10, [x27, x9, lsl #3]
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
+ ldr x10, [x19, x9, lsl #3]
+ br x10
.Lasm_LooselyEqualsRhsInt32.ssa_block_6:
mov x3, x2
and w3, w3, #0xfffe
@@ -7632,15 +7641,6 @@ asm_handler_LooselyEqualsRhsInt32:
add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
-.Lasm_LooselyEqualsRhsInt32.ssa_block_2:
- ldrb w9, [x21, #3]
- movz x10, #0x1, lsl #0
- movk x10, #0x7ff9, lsl #48
- str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #9]
- add x21, x21, #9
- ldr x10, [x19, x9, lsl #3]
- br x10
asm_handler_LooselyEqualsRhsInt32_hot_end:
.p2align 4
@@ -7681,6 +7681,14 @@ asm_handler_LooselyInequalsRhsInt32:
cmp x2, x9
b.eq .Lasm_LooselyInequalsRhsInt32.ssa_block_31
b .Lasm_LooselyInequalsRhsInt32.ssa_block_4
+.Lasm_LooselyInequalsRhsInt32.ssa_block_3:
+ ldrb w9, [x21, #3]
+ movz x10, #0x7ff9, lsl #48
+ str x10, [x27, x9, lsl #3]
+ ldrb w9, [x21, #9]
+ add x21, x21, #9
+ ldr x10, [x19, x9, lsl #3]
+ br x10
.Lasm_LooselyInequalsRhsInt32.ssa_block_6:
mov x3, x2
and w3, w3, #0xfffe
@@ -7729,14 +7737,6 @@ asm_handler_LooselyInequalsRhsInt32:
add x21, x21, #9
ldr x10, [x19, x9, lsl #3]
br x10
-.Lasm_LooselyInequalsRhsInt32.ssa_block_3:
- ldrb w9, [x21, #3]
- movz x10, #0x7ff9, lsl #48
- str x10, [x27, x9, lsl #3]
- ldrb w9, [x21, #9]
- add x21, x21, #9
- ldr x10, [x19, x9, lsl #3]
- br x10
asm_handler_LooselyInequalsRhsInt32_hot_end:
.p2align 4
@@ -7777,6 +7777,12 @@ asm_handler_JumpStrictlyEqualsRhsInt32:
cmp x2, x9
b.eq .Lasm_JumpStrictlyEqualsRhsInt32.ssa_block_29
b .Lasm_JumpStrictlyEqualsRhsInt32.ssa_block_4
+.Lasm_JumpStrictlyEqualsRhsInt32.ssa_block_2:
+ ldr w0, [x21, #8]
+ add x21, x26, w0, uxtw
+ ldrb w9, [x21]
+ ldr x10, [x19, x9, lsl #3]
+ br x10
.Lasm_JumpStrictlyEqualsRhsInt32.ssa_block_6:
cmp x2, x22
b.eq .Lasm_JumpStrictlyEqualsRhsInt32.ssa_block_8
@@ -7828,12 +7834,6 @@ asm_handler_JumpStrictlyEqualsRhsInt32:
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
-.Lasm_JumpStrictlyEqualsRhsInt32.ssa_block_2:
- ldr w0, [x21, #8]
- add x21, x26, w0, uxtw
- ldrb w9, [x21]
- ldr x10, [x19, x9, lsl #3]
- br x10
asm_handler_JumpStrictlyEqualsRhsInt32_hot_end:
.p2align 4
@@ -7874,6 +7874,12 @@ asm_handler_JumpStrictlyInequalsRhsInt32:
cmp x2, x9
b.eq .Lasm_JumpStrictlyInequalsRhsInt32.ssa_block_29
b .Lasm_JumpStrictlyInequalsRhsInt32.ssa_block_4
+.Lasm_JumpStrictlyInequalsRhsInt32.ssa_block_3:
+ ldr w0, [x21, #12]
+ add x21, x26, w0, uxtw
+ ldrb w9, [x21]
+ ldr x10, [x19, x9, lsl #3]
+ br x10
.Lasm_JumpStrictlyInequalsRhsInt32.ssa_block_6:
cmp x2, x22
b.eq .Lasm_JumpStrictlyInequalsRhsInt32.ssa_block_8
@@ -7925,12 +7931,6 @@ asm_handler_JumpStrictlyInequalsRhsInt32:
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
-.Lasm_JumpStrictlyInequalsRhsInt32.ssa_block_3:
- ldr w0, [x21, #12]
- add x21, x26, w0, uxtw
- ldrb w9, [x21]
- ldr x10, [x19, x9, lsl #3]
- br x10
asm_handler_JumpStrictlyInequalsRhsInt32_hot_end:
.p2align 4
@@ -7971,6 +7971,12 @@ asm_handler_JumpLooselyEqualsRhsInt32:
cmp x2, x9
b.eq .Lasm_JumpLooselyEqualsRhsInt32.ssa_block_31
b .Lasm_JumpLooselyEqualsRhsInt32.ssa_block_4
+.Lasm_JumpLooselyEqualsRhsInt32.ssa_block_2:
+ ldr w0, [x21, #8]
+ add x21, x26, w0, uxtw
+ ldrb w9, [x21]
+ ldr x10, [x19, x9, lsl #3]
+ br x10
.Lasm_JumpLooselyEqualsRhsInt32.ssa_block_6:
mov x3, x2
and w3, w3, #0xfffe
@@ -8016,12 +8022,6 @@ asm_handler_JumpLooselyEqualsRhsInt32:
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
-.Lasm_JumpLooselyEqualsRhsInt32.ssa_block_2:
- ldr w0, [x21, #8]
- add x21, x26, w0, uxtw
- ldrb w9, [x21]
- ldr x10, [x19, x9, lsl #3]
- br x10
asm_handler_JumpLooselyEqualsRhsInt32_hot_end:
.p2align 4
@@ -8062,6 +8062,12 @@ asm_handler_JumpLooselyInequalsRhsInt32:
cmp x2, x9
b.eq .Lasm_JumpLooselyInequalsRhsInt32.ssa_block_31
b .Lasm_JumpLooselyInequalsRhsInt32.ssa_block_4
+.Lasm_JumpLooselyInequalsRhsInt32.ssa_block_3:
+ ldr w0, [x21, #12]
+ add x21, x26, w0, uxtw
+ ldrb w9, [x21]
+ ldr x10, [x19, x9, lsl #3]
+ br x10
.Lasm_JumpLooselyInequalsRhsInt32.ssa_block_6:
mov x3, x2
and w3, w3, #0xfffe
@@ -8107,12 +8113,6 @@ asm_handler_JumpLooselyInequalsRhsInt32:
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
-.Lasm_JumpLooselyInequalsRhsInt32.ssa_block_3:
- ldr w0, [x21, #12]
- add x21, x26, w0, uxtw
- ldrb w9, [x21]
- ldr x10, [x19, x9, lsl #3]
- br x10
asm_handler_JumpLooselyInequalsRhsInt32_hot_end:
.p2align 4
@@ -8249,6 +8249,12 @@ asm_handler_JumpStrictlyEqualsLoopRhsInt32:
cmp x2, x9
b.eq .Lasm_JumpStrictlyEqualsLoopRhsInt32.ssa_block_29
b .Lasm_JumpStrictlyEqualsLoopRhsInt32.ssa_block_4
+.Lasm_JumpStrictlyEqualsLoopRhsInt32.ssa_block_2:
+ ldr w0, [x21, #8]
+ add x21, x26, w0, uxtw
+ ldrb w9, [x21]
+ ldr x10, [x19, x9, lsl #3]
+ br x10
.Lasm_JumpStrictlyEqualsLoopRhsInt32.ssa_block_6:
cmp x2, x22
b.eq .Lasm_JumpStrictlyEqualsLoopRhsInt32.ssa_block_8
@@ -8300,12 +8306,6 @@ asm_handler_JumpStrictlyEqualsLoopRhsInt32:
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
-.Lasm_JumpStrictlyEqualsLoopRhsInt32.ssa_block_2:
- ldr w0, [x21, #8]
- add x21, x26, w0, uxtw
- ldrb w9, [x21]
- ldr x10, [x19, x9, lsl #3]
- br x10
asm_handler_JumpStrictlyEqualsLoopRhsInt32_hot_end:
.p2align 4
@@ -8346,6 +8346,12 @@ asm_handler_JumpStrictlyInequalsLoopRhsInt32:
cmp x2, x9
b.eq .Lasm_JumpStrictlyInequalsLoopRhsInt32.ssa_block_29
b .Lasm_JumpStrictlyInequalsLoopRhsInt32.ssa_block_4
+.Lasm_JumpStrictlyInequalsLoopRhsInt32.ssa_block_3:
+ ldr w0, [x21, #12]
+ add x21, x26, w0, uxtw
+ ldrb w9, [x21]
+ ldr x10, [x19, x9, lsl #3]
+ br x10
.Lasm_JumpStrictlyInequalsLoopRhsInt32.ssa_block_6:
cmp x2, x22
b.eq .Lasm_JumpStrictlyInequalsLoopRhsInt32.ssa_block_8
@@ -8397,12 +8403,6 @@ asm_handler_JumpStrictlyInequalsLoopRhsInt32:
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
-.Lasm_JumpStrictlyInequalsLoopRhsInt32.ssa_block_3:
- ldr w0, [x21, #12]
- add x21, x26, w0, uxtw
- ldrb w9, [x21]
- ldr x10, [x19, x9, lsl #3]
- br x10
asm_handler_JumpStrictlyInequalsLoopRhsInt32_hot_end:
.p2align 4
@@ -8443,6 +8443,12 @@ asm_handler_JumpLooselyEqualsLoopRhsInt32:
cmp x2, x9
b.eq .Lasm_JumpLooselyEqualsLoopRhsInt32.ssa_block_31
b .Lasm_JumpLooselyEqualsLoopRhsInt32.ssa_block_4
+.Lasm_JumpLooselyEqualsLoopRhsInt32.ssa_block_2:
+ ldr w0, [x21, #8]
+ add x21, x26, w0, uxtw
+ ldrb w9, [x21]
+ ldr x10, [x19, x9, lsl #3]
+ br x10
.Lasm_JumpLooselyEqualsLoopRhsInt32.ssa_block_6:
mov x3, x2
and w3, w3, #0xfffe
@@ -8488,12 +8494,6 @@ asm_handler_JumpLooselyEqualsLoopRhsInt32:
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
-.Lasm_JumpLooselyEqualsLoopRhsInt32.ssa_block_2:
- ldr w0, [x21, #8]
- add x21, x26, w0, uxtw
- ldrb w9, [x21]
- ldr x10, [x19, x9, lsl #3]
- br x10
asm_handler_JumpLooselyEqualsLoopRhsInt32_hot_end:
.p2align 4
@@ -8534,6 +8534,12 @@ asm_handler_JumpLooselyInequalsLoopRhsInt32:
cmp x2, x9
b.eq .Lasm_JumpLooselyInequalsLoopRhsInt32.ssa_block_31
b .Lasm_JumpLooselyInequalsLoopRhsInt32.ssa_block_4
+.Lasm_JumpLooselyInequalsLoopRhsInt32.ssa_block_3:
+ ldr w0, [x21, #12]
+ add x21, x26, w0, uxtw
+ ldrb w9, [x21]
+ ldr x10, [x19, x9, lsl #3]
+ br x10
.Lasm_JumpLooselyInequalsLoopRhsInt32.ssa_block_6:
mov x3, x2
and w3, w3, #0xfffe
@@ -8579,12 +8585,6 @@ asm_handler_JumpLooselyInequalsLoopRhsInt32:
ldrb w9, [x21]
ldr x10, [x19, x9, lsl #3]
br x10
-.Lasm_JumpLooselyInequalsLoopRhsInt32.ssa_block_3:
- ldr w0, [x21, #12]
- add x21, x26, w0, uxtw
- ldrb w9, [x21]
- ldr x10, [x19, x9, lsl #3]
- br x10
asm_handler_JumpLooselyInequalsLoopRhsInt32_hot_end:
// Cold handler paths
diff --git a/Libraries/LibJS/Flap/tests/interpreter-assembly/x86_64.S b/Libraries/LibJS/Flap/tests/interpreter-assembly/x86_64.S
index 9b63a2bf4d2..bdae720c6fd 100644
--- a/Libraries/LibJS/Flap/tests/interpreter-assembly/x86_64.S
+++ b/Libraries/LibJS/Flap/tests/interpreter-assembly/x86_64.S
@@ -2117,6 +2117,10 @@ asm_handler_JumpLooselyEquals:
cmp rax, 32766
je .Lasm_JumpLooselyEquals.ssa_block_31
jmp .Lasm_JumpLooselyEquals.ssa_block_4
+.Lasm_JumpLooselyEquals.ssa_block_2:
+ mov r13d, DWORD PTR [r14 + r13 + 5]
+ movzx eax, BYTE PTR [r14 + r13]
+ jmp [r12 + rax * 8]
.Lasm_JumpLooselyEquals.ssa_block_6:
mov rdi, rax
and di, 65534
@@ -2159,10 +2163,6 @@ asm_handler_JumpLooselyEquals:
mov r13d, DWORD PTR [r14 + r13 + 9]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
-.Lasm_JumpLooselyEquals.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 5]
- movzx eax, BYTE PTR [r14 + r13]
- jmp [r12 + rax * 8]
asm_handler_JumpLooselyEquals_hot_end:
.p2align 6
@@ -2205,6 +2205,10 @@ asm_handler_JumpLooselyInequals:
cmp rax, 32766
je .Lasm_JumpLooselyInequals.ssa_block_31
jmp .Lasm_JumpLooselyInequals.ssa_block_4
+.Lasm_JumpLooselyInequals.ssa_block_3:
+ mov r13d, DWORD PTR [r14 + r13 + 9]
+ movzx eax, BYTE PTR [r14 + r13]
+ jmp [r12 + rax * 8]
.Lasm_JumpLooselyInequals.ssa_block_6:
mov rdi, rax
and di, 65534
@@ -2247,10 +2251,6 @@ asm_handler_JumpLooselyInequals:
mov r13d, DWORD PTR [r14 + r13 + 5]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
-.Lasm_JumpLooselyInequals.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 9]
- movzx eax, BYTE PTR [r14 + r13]
- jmp [r12 + rax * 8]
asm_handler_JumpLooselyInequals_hot_end:
.p2align 6
@@ -2293,6 +2293,10 @@ asm_handler_JumpStrictlyEquals:
cmp rax, 32766
je .Lasm_JumpStrictlyEquals.ssa_block_29
jmp .Lasm_JumpStrictlyEquals.ssa_block_4
+.Lasm_JumpStrictlyEquals.ssa_block_2:
+ mov r13d, DWORD PTR [r14 + r13 + 5]
+ movzx eax, BYTE PTR [r14 + r13]
+ jmp [r12 + rax * 8]
.Lasm_JumpStrictlyEquals.ssa_block_6:
cmp rax, 32762
je .Lasm_JumpStrictlyEquals.ssa_block_8
@@ -2337,10 +2341,6 @@ asm_handler_JumpStrictlyEquals:
mov r13d, DWORD PTR [r14 + r13 + 9]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
-.Lasm_JumpStrictlyEquals.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 5]
- movzx eax, BYTE PTR [r14 + r13]
- jmp [r12 + rax * 8]
asm_handler_JumpStrictlyEquals_hot_end:
.p2align 6
@@ -2383,6 +2383,10 @@ asm_handler_JumpStrictlyInequals:
cmp rax, 32766
je .Lasm_JumpStrictlyInequals.ssa_block_29
jmp .Lasm_JumpStrictlyInequals.ssa_block_4
+.Lasm_JumpStrictlyInequals.ssa_block_3:
+ mov r13d, DWORD PTR [r14 + r13 + 9]
+ movzx eax, BYTE PTR [r14 + r13]
+ jmp [r12 + rax * 8]
.Lasm_JumpStrictlyInequals.ssa_block_6:
cmp rax, 32762
je .Lasm_JumpStrictlyInequals.ssa_block_8
@@ -2427,10 +2431,6 @@ asm_handler_JumpStrictlyInequals:
mov r13d, DWORD PTR [r14 + r13 + 5]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
-.Lasm_JumpStrictlyInequals.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 9]
- movzx eax, BYTE PTR [r14 + r13]
- jmp [r12 + rax * 8]
asm_handler_JumpStrictlyInequals_hot_end:
.p2align 6
@@ -2729,6 +2729,10 @@ asm_handler_JumpLooselyEqualsLoop:
cmp rax, 32766
je .Lasm_JumpLooselyEqualsLoop.ssa_block_31
jmp .Lasm_JumpLooselyEqualsLoop.ssa_block_4
+.Lasm_JumpLooselyEqualsLoop.ssa_block_2:
+ mov r13d, DWORD PTR [r14 + r13 + 5]
+ movzx eax, BYTE PTR [r14 + r13]
+ jmp [r12 + rax * 8]
.Lasm_JumpLooselyEqualsLoop.ssa_block_6:
mov rdi, rax
and di, 65534
@@ -2771,10 +2775,6 @@ asm_handler_JumpLooselyEqualsLoop:
mov r13d, DWORD PTR [r14 + r13 + 9]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
-.Lasm_JumpLooselyEqualsLoop.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 5]
- movzx eax, BYTE PTR [r14 + r13]
- jmp [r12 + rax * 8]
asm_handler_JumpLooselyEqualsLoop_hot_end:
.p2align 6
@@ -2817,6 +2817,10 @@ asm_handler_JumpLooselyInequalsLoop:
cmp rax, 32766
je .Lasm_JumpLooselyInequalsLoop.ssa_block_31
jmp .Lasm_JumpLooselyInequalsLoop.ssa_block_4
+.Lasm_JumpLooselyInequalsLoop.ssa_block_3:
+ mov r13d, DWORD PTR [r14 + r13 + 9]
+ movzx eax, BYTE PTR [r14 + r13]
+ jmp [r12 + rax * 8]
.Lasm_JumpLooselyInequalsLoop.ssa_block_6:
mov rdi, rax
and di, 65534
@@ -2859,10 +2863,6 @@ asm_handler_JumpLooselyInequalsLoop:
mov r13d, DWORD PTR [r14 + r13 + 5]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
-.Lasm_JumpLooselyInequalsLoop.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 9]
- movzx eax, BYTE PTR [r14 + r13]
- jmp [r12 + rax * 8]
asm_handler_JumpLooselyInequalsLoop_hot_end:
.p2align 6
@@ -2905,6 +2905,10 @@ asm_handler_JumpStrictlyEqualsLoop:
cmp rax, 32766
je .Lasm_JumpStrictlyEqualsLoop.ssa_block_29
jmp .Lasm_JumpStrictlyEqualsLoop.ssa_block_4
+.Lasm_JumpStrictlyEqualsLoop.ssa_block_2:
+ mov r13d, DWORD PTR [r14 + r13 + 5]
+ movzx eax, BYTE PTR [r14 + r13]
+ jmp [r12 + rax * 8]
.Lasm_JumpStrictlyEqualsLoop.ssa_block_6:
cmp rax, 32762
je .Lasm_JumpStrictlyEqualsLoop.ssa_block_8
@@ -2949,10 +2953,6 @@ asm_handler_JumpStrictlyEqualsLoop:
mov r13d, DWORD PTR [r14 + r13 + 9]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
-.Lasm_JumpStrictlyEqualsLoop.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 5]
- movzx eax, BYTE PTR [r14 + r13]
- jmp [r12 + rax * 8]
asm_handler_JumpStrictlyEqualsLoop_hot_end:
.p2align 6
@@ -2995,6 +2995,10 @@ asm_handler_JumpStrictlyInequalsLoop:
cmp rax, 32766
je .Lasm_JumpStrictlyInequalsLoop.ssa_block_29
jmp .Lasm_JumpStrictlyInequalsLoop.ssa_block_4
+.Lasm_JumpStrictlyInequalsLoop.ssa_block_3:
+ mov r13d, DWORD PTR [r14 + r13 + 9]
+ movzx eax, BYTE PTR [r14 + r13]
+ jmp [r12 + rax * 8]
.Lasm_JumpStrictlyInequalsLoop.ssa_block_6:
cmp rax, 32762
je .Lasm_JumpStrictlyInequalsLoop.ssa_block_8
@@ -3039,10 +3043,6 @@ asm_handler_JumpStrictlyInequalsLoop:
mov r13d, DWORD PTR [r14 + r13 + 5]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
-.Lasm_JumpStrictlyInequalsLoop.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 9]
- movzx eax, BYTE PTR [r14 + r13]
- jmp [r12 + rax * 8]
asm_handler_JumpStrictlyInequalsLoop_hot_end:
.p2align 6
@@ -4570,6 +4570,13 @@ asm_handler_StrictlyEquals:
cmp rax, 32766
je .Lasm_StrictlyEquals.ssa_block_29
jmp .Lasm_StrictlyEquals.ssa_block_4
+.Lasm_StrictlyEquals.ssa_block_2:
+ movabs r11, 9221401712017801217
+ movzx eax, BYTE PTR [r14 + r13 + 3]
+ mov QWORD PTR [rbx + rax * 8], r11
+ add r13d, 6
+ movzx eax, BYTE PTR [r14 + r13]
+ jmp [r12 + rax * 8]
.Lasm_StrictlyEquals.ssa_block_6:
cmp rax, 32762
je .Lasm_StrictlyEquals.ssa_block_8
@@ -4617,13 +4624,6 @@ asm_handler_StrictlyEquals:
add r13d, 6
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
-.Lasm_StrictlyEquals.ssa_block_2:
- movabs r11, 9221401712017801217
- movzx eax, BYTE PTR [r14 + r13 + 3]
- mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 6
- movzx eax, BYTE PTR [r14 + r13]
- jmp [r12 + rax * 8]
asm_handler_StrictlyEquals_hot_end:
.p2align 6
@@ -4666,6 +4666,13 @@ asm_handler_StrictlyInequals:
cmp rax, 32766
je .Lasm_StrictlyInequals.ssa_block_29
jmp .Lasm_StrictlyInequals.ssa_block_4
+.Lasm_StrictlyInequals.ssa_block_3:
+ movabs r11, 9221401712017801216
+ movzx eax, BYTE PTR [r14 + r13 + 3]
+ mov QWORD PTR [rbx + rax * 8], r11
+ add r13d, 6
+ movzx eax, BYTE PTR [r14 + r13]
+ jmp [r12 + rax * 8]
.Lasm_StrictlyInequals.ssa_block_6:
cmp rax, 32762
je .Lasm_StrictlyInequals.ssa_block_8
@@ -4713,13 +4720,6 @@ asm_handler_StrictlyInequals:
add r13d, 6
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
-.Lasm_StrictlyInequals.ssa_block_3:
- movabs r11, 9221401712017801216
- movzx eax, BYTE PTR [r14 + r13 + 3]
- mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 6
- movzx eax, BYTE PTR [r14 + r13]
- jmp [r12 + rax * 8]
asm_handler_StrictlyInequals_hot_end:
.p2align 6
@@ -4857,6 +4857,13 @@ asm_handler_LooselyEquals:
cmp rax, 32766
je .Lasm_LooselyEquals.ssa_block_31
jmp .Lasm_LooselyEquals.ssa_block_4
+.Lasm_LooselyEquals.ssa_block_2:
+ movabs r11, 9221401712017801217
+ movzx eax, BYTE PTR [r14 + r13 + 3]
+ mov QWORD PTR [rbx + rax * 8], r11
+ add r13d, 6
+ movzx eax, BYTE PTR [r14 + r13]
+ jmp [r12 + rax * 8]
.Lasm_LooselyEquals.ssa_block_6:
mov rdi, rax
and di, 65534
@@ -4902,13 +4909,6 @@ asm_handler_LooselyEquals:
add r13d, 6
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
-.Lasm_LooselyEquals.ssa_block_2:
- movabs r11, 9221401712017801217
- movzx eax, BYTE PTR [r14 + r13 + 3]
- mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 6
- movzx eax, BYTE PTR [r14 + r13]
- jmp [r12 + rax * 8]
asm_handler_LooselyEquals_hot_end:
.p2align 6
@@ -4951,6 +4951,13 @@ asm_handler_LooselyInequals:
cmp rax, 32766
je .Lasm_LooselyInequals.ssa_block_31
jmp .Lasm_LooselyInequals.ssa_block_4
+.Lasm_LooselyInequals.ssa_block_3:
+ movabs r11, 9221401712017801216
+ movzx eax, BYTE PTR [r14 + r13 + 3]
+ mov QWORD PTR [rbx + rax * 8], r11
+ add r13d, 6
+ movzx eax, BYTE PTR [r14 + r13]
+ jmp [r12 + rax * 8]
.Lasm_LooselyInequals.ssa_block_6:
mov rdi, rax
and di, 65534
@@ -4996,13 +5003,6 @@ asm_handler_LooselyInequals:
add r13d, 6
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
-.Lasm_LooselyInequals.ssa_block_3:
- movabs r11, 9221401712017801216
- movzx eax, BYTE PTR [r14 + r13 + 3]
- mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 6
- movzx eax, BYTE PTR [r14 + r13]
- jmp [r12 + rax * 8]
asm_handler_LooselyInequals_hot_end:
.p2align 6
@@ -7458,6 +7458,13 @@ asm_handler_StrictlyEqualsRhsInt32:
cmp rax, 32766
je .Lasm_StrictlyEqualsRhsInt32.ssa_block_29
jmp .Lasm_StrictlyEqualsRhsInt32.ssa_block_4
+.Lasm_StrictlyEqualsRhsInt32.ssa_block_2:
+ movabs r11, 9221401712017801217
+ movzx eax, BYTE PTR [r14 + r13 + 3]
+ mov QWORD PTR [rbx + rax * 8], r11
+ add r13d, 9
+ movzx eax, BYTE PTR [r14 + r13]
+ jmp [r12 + rax * 8]
.Lasm_StrictlyEqualsRhsInt32.ssa_block_6:
cmp rax, 32762
je .Lasm_StrictlyEqualsRhsInt32.ssa_block_8
@@ -7507,13 +7514,6 @@ asm_handler_StrictlyEqualsRhsInt32:
add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
-.Lasm_StrictlyEqualsRhsInt32.ssa_block_2:
- movabs r11, 9221401712017801217
- movzx eax, BYTE PTR [r14 + r13 + 3]
- mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 9
- movzx eax, BYTE PTR [r14 + r13]
- jmp [r12 + rax * 8]
asm_handler_StrictlyEqualsRhsInt32_hot_end:
.p2align 6
@@ -7554,6 +7554,13 @@ asm_handler_StrictlyInequalsRhsInt32:
cmp rax, 32766
je .Lasm_StrictlyInequalsRhsInt32.ssa_block_29
jmp .Lasm_StrictlyInequalsRhsInt32.ssa_block_4
+.Lasm_StrictlyInequalsRhsInt32.ssa_block_3:
+ movabs r11, 9221401712017801216
+ movzx eax, BYTE PTR [r14 + r13 + 3]
+ mov QWORD PTR [rbx + rax * 8], r11
+ add r13d, 9
+ movzx eax, BYTE PTR [r14 + r13]
+ jmp [r12 + rax * 8]
.Lasm_StrictlyInequalsRhsInt32.ssa_block_6:
cmp rax, 32762
je .Lasm_StrictlyInequalsRhsInt32.ssa_block_8
@@ -7603,13 +7610,6 @@ asm_handler_StrictlyInequalsRhsInt32:
add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
-.Lasm_StrictlyInequalsRhsInt32.ssa_block_3:
- movabs r11, 9221401712017801216
- movzx eax, BYTE PTR [r14 + r13 + 3]
- mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 9
- movzx eax, BYTE PTR [r14 + r13]
- jmp [r12 + rax * 8]
asm_handler_StrictlyInequalsRhsInt32_hot_end:
.p2align 6
@@ -7650,6 +7650,13 @@ asm_handler_LooselyEqualsRhsInt32:
cmp rax, 32766
je .Lasm_LooselyEqualsRhsInt32.ssa_block_31
jmp .Lasm_LooselyEqualsRhsInt32.ssa_block_4
+.Lasm_LooselyEqualsRhsInt32.ssa_block_2:
+ movabs r11, 9221401712017801217
+ movzx eax, BYTE PTR [r14 + r13 + 3]
+ mov QWORD PTR [rbx + rax * 8], r11
+ add r13d, 9
+ movzx eax, BYTE PTR [r14 + r13]
+ jmp [r12 + rax * 8]
.Lasm_LooselyEqualsRhsInt32.ssa_block_6:
mov rsi, rax
and si, 65534
@@ -7694,13 +7701,6 @@ asm_handler_LooselyEqualsRhsInt32:
add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
-.Lasm_LooselyEqualsRhsInt32.ssa_block_2:
- movabs r11, 9221401712017801217
- movzx eax, BYTE PTR [r14 + r13 + 3]
- mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 9
- movzx eax, BYTE PTR [r14 + r13]
- jmp [r12 + rax * 8]
asm_handler_LooselyEqualsRhsInt32_hot_end:
.p2align 6
@@ -7741,6 +7741,13 @@ asm_handler_LooselyInequalsRhsInt32:
cmp rax, 32766
je .Lasm_LooselyInequalsRhsInt32.ssa_block_31
jmp .Lasm_LooselyInequalsRhsInt32.ssa_block_4
+.Lasm_LooselyInequalsRhsInt32.ssa_block_3:
+ movabs r11, 9221401712017801216
+ movzx eax, BYTE PTR [r14 + r13 + 3]
+ mov QWORD PTR [rbx + rax * 8], r11
+ add r13d, 9
+ movzx eax, BYTE PTR [r14 + r13]
+ jmp [r12 + rax * 8]
.Lasm_LooselyInequalsRhsInt32.ssa_block_6:
mov rsi, rax
and si, 65534
@@ -7785,13 +7792,6 @@ asm_handler_LooselyInequalsRhsInt32:
add r13d, 9
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
-.Lasm_LooselyInequalsRhsInt32.ssa_block_3:
- movabs r11, 9221401712017801216
- movzx eax, BYTE PTR [r14 + r13 + 3]
- mov QWORD PTR [rbx + rax * 8], r11
- add r13d, 9
- movzx eax, BYTE PTR [r14 + r13]
- jmp [r12 + rax * 8]
asm_handler_LooselyInequalsRhsInt32_hot_end:
.p2align 6
@@ -7832,6 +7832,10 @@ asm_handler_JumpStrictlyEqualsRhsInt32:
cmp rax, 32766
je .Lasm_JumpStrictlyEqualsRhsInt32.ssa_block_29
jmp .Lasm_JumpStrictlyEqualsRhsInt32.ssa_block_4
+.Lasm_JumpStrictlyEqualsRhsInt32.ssa_block_2:
+ mov r13d, DWORD PTR [r14 + r13 + 8]
+ movzx eax, BYTE PTR [r14 + r13]
+ jmp [r12 + rax * 8]
.Lasm_JumpStrictlyEqualsRhsInt32.ssa_block_6:
cmp rax, 32762
je .Lasm_JumpStrictlyEqualsRhsInt32.ssa_block_8
@@ -7878,10 +7882,6 @@ asm_handler_JumpStrictlyEqualsRhsInt32:
mov r13d, DWORD PTR [r14 + r13 + 12]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
-.Lasm_JumpStrictlyEqualsRhsInt32.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 8]
- movzx eax, BYTE PTR [r14 + r13]
- jmp [r12 + rax * 8]
asm_handler_JumpStrictlyEqualsRhsInt32_hot_end:
.p2align 6
@@ -7922,6 +7922,10 @@ asm_handler_JumpStrictlyInequalsRhsInt32:
cmp rax, 32766
je .Lasm_JumpStrictlyInequalsRhsInt32.ssa_block_29
jmp .Lasm_JumpStrictlyInequalsRhsInt32.ssa_block_4
+.Lasm_JumpStrictlyInequalsRhsInt32.ssa_block_3:
+ mov r13d, DWORD PTR [r14 + r13 + 12]
+ movzx eax, BYTE PTR [r14 + r13]
+ jmp [r12 + rax * 8]
.Lasm_JumpStrictlyInequalsRhsInt32.ssa_block_6:
cmp rax, 32762
je .Lasm_JumpStrictlyInequalsRhsInt32.ssa_block_8
@@ -7968,10 +7972,6 @@ asm_handler_JumpStrictlyInequalsRhsInt32:
mov r13d, DWORD PTR [r14 + r13 + 8]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
-.Lasm_JumpStrictlyInequalsRhsInt32.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 12]
- movzx eax, BYTE PTR [r14 + r13]
- jmp [r12 + rax * 8]
asm_handler_JumpStrictlyInequalsRhsInt32_hot_end:
.p2align 6
@@ -8012,6 +8012,10 @@ asm_handler_JumpLooselyEqualsRhsInt32:
cmp rax, 32766
je .Lasm_JumpLooselyEqualsRhsInt32.ssa_block_31
jmp .Lasm_JumpLooselyEqualsRhsInt32.ssa_block_4
+.Lasm_JumpLooselyEqualsRhsInt32.ssa_block_2:
+ mov r13d, DWORD PTR [r14 + r13 + 8]
+ movzx eax, BYTE PTR [r14 + r13]
+ jmp [r12 + rax * 8]
.Lasm_JumpLooselyEqualsRhsInt32.ssa_block_6:
mov rsi, rax
and si, 65534
@@ -8053,10 +8057,6 @@ asm_handler_JumpLooselyEqualsRhsInt32:
mov r13d, DWORD PTR [r14 + r13 + 12]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
-.Lasm_JumpLooselyEqualsRhsInt32.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 8]
- movzx eax, BYTE PTR [r14 + r13]
- jmp [r12 + rax * 8]
asm_handler_JumpLooselyEqualsRhsInt32_hot_end:
.p2align 6
@@ -8097,6 +8097,10 @@ asm_handler_JumpLooselyInequalsRhsInt32:
cmp rax, 32766
je .Lasm_JumpLooselyInequalsRhsInt32.ssa_block_31
jmp .Lasm_JumpLooselyInequalsRhsInt32.ssa_block_4
+.Lasm_JumpLooselyInequalsRhsInt32.ssa_block_3:
+ mov r13d, DWORD PTR [r14 + r13 + 12]
+ movzx eax, BYTE PTR [r14 + r13]
+ jmp [r12 + rax * 8]
.Lasm_JumpLooselyInequalsRhsInt32.ssa_block_6:
mov rsi, rax
and si, 65534
@@ -8138,10 +8142,6 @@ asm_handler_JumpLooselyInequalsRhsInt32:
mov r13d, DWORD PTR [r14 + r13 + 8]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
-.Lasm_JumpLooselyInequalsRhsInt32.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 12]
- movzx eax, BYTE PTR [r14 + r13]
- jmp [r12 + rax * 8]
asm_handler_JumpLooselyInequalsRhsInt32_hot_end:
.p2align 6
@@ -8266,6 +8266,10 @@ asm_handler_JumpStrictlyEqualsLoopRhsInt32:
cmp rax, 32766
je .Lasm_JumpStrictlyEqualsLoopRhsInt32.ssa_block_29
jmp .Lasm_JumpStrictlyEqualsLoopRhsInt32.ssa_block_4
+.Lasm_JumpStrictlyEqualsLoopRhsInt32.ssa_block_2:
+ mov r13d, DWORD PTR [r14 + r13 + 8]
+ movzx eax, BYTE PTR [r14 + r13]
+ jmp [r12 + rax * 8]
.Lasm_JumpStrictlyEqualsLoopRhsInt32.ssa_block_6:
cmp rax, 32762
je .Lasm_JumpStrictlyEqualsLoopRhsInt32.ssa_block_8
@@ -8312,10 +8316,6 @@ asm_handler_JumpStrictlyEqualsLoopRhsInt32:
mov r13d, DWORD PTR [r14 + r13 + 12]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
-.Lasm_JumpStrictlyEqualsLoopRhsInt32.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 8]
- movzx eax, BYTE PTR [r14 + r13]
- jmp [r12 + rax * 8]
asm_handler_JumpStrictlyEqualsLoopRhsInt32_hot_end:
.p2align 6
@@ -8356,6 +8356,10 @@ asm_handler_JumpStrictlyInequalsLoopRhsInt32:
cmp rax, 32766
je .Lasm_JumpStrictlyInequalsLoopRhsInt32.ssa_block_29
jmp .Lasm_JumpStrictlyInequalsLoopRhsInt32.ssa_block_4
+.Lasm_JumpStrictlyInequalsLoopRhsInt32.ssa_block_3:
+ mov r13d, DWORD PTR [r14 + r13 + 12]
+ movzx eax, BYTE PTR [r14 + r13]
+ jmp [r12 + rax * 8]
.Lasm_JumpStrictlyInequalsLoopRhsInt32.ssa_block_6:
cmp rax, 32762
je .Lasm_JumpStrictlyInequalsLoopRhsInt32.ssa_block_8
@@ -8402,10 +8406,6 @@ asm_handler_JumpStrictlyInequalsLoopRhsInt32:
mov r13d, DWORD PTR [r14 + r13 + 8]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
-.Lasm_JumpStrictlyInequalsLoopRhsInt32.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 12]
- movzx eax, BYTE PTR [r14 + r13]
- jmp [r12 + rax * 8]
asm_handler_JumpStrictlyInequalsLoopRhsInt32_hot_end:
.p2align 6
@@ -8446,6 +8446,10 @@ asm_handler_JumpLooselyEqualsLoopRhsInt32:
cmp rax, 32766
je .Lasm_JumpLooselyEqualsLoopRhsInt32.ssa_block_31
jmp .Lasm_JumpLooselyEqualsLoopRhsInt32.ssa_block_4
+.Lasm_JumpLooselyEqualsLoopRhsInt32.ssa_block_2:
+ mov r13d, DWORD PTR [r14 + r13 + 8]
+ movzx eax, BYTE PTR [r14 + r13]
+ jmp [r12 + rax * 8]
.Lasm_JumpLooselyEqualsLoopRhsInt32.ssa_block_6:
mov rsi, rax
and si, 65534
@@ -8487,10 +8491,6 @@ asm_handler_JumpLooselyEqualsLoopRhsInt32:
mov r13d, DWORD PTR [r14 + r13 + 12]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
-.Lasm_JumpLooselyEqualsLoopRhsInt32.ssa_block_2:
- mov r13d, DWORD PTR [r14 + r13 + 8]
- movzx eax, BYTE PTR [r14 + r13]
- jmp [r12 + rax * 8]
asm_handler_JumpLooselyEqualsLoopRhsInt32_hot_end:
.p2align 6
@@ -8531,6 +8531,10 @@ asm_handler_JumpLooselyInequalsLoopRhsInt32:
cmp rax, 32766
je .Lasm_JumpLooselyInequalsLoopRhsInt32.ssa_block_31
jmp .Lasm_JumpLooselyInequalsLoopRhsInt32.ssa_block_4
+.Lasm_JumpLooselyInequalsLoopRhsInt32.ssa_block_3:
+ mov r13d, DWORD PTR [r14 + r13 + 12]
+ movzx eax, BYTE PTR [r14 + r13]
+ jmp [r12 + rax * 8]
.Lasm_JumpLooselyInequalsLoopRhsInt32.ssa_block_6:
mov rsi, rax
and si, 65534
@@ -8572,10 +8576,6 @@ asm_handler_JumpLooselyInequalsLoopRhsInt32:
mov r13d, DWORD PTR [r14 + r13 + 8]
movzx eax, BYTE PTR [r14 + r13]
jmp [r12 + rax * 8]
-.Lasm_JumpLooselyInequalsLoopRhsInt32.ssa_block_3:
- mov r13d, DWORD PTR [r14 + r13 + 12]
- movzx eax, BYTE PTR [r14 + r13]
- jmp [r12 + rax * 8]
asm_handler_JumpLooselyInequalsLoopRhsInt32_hot_end:
# Cold handler paths