1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 02:17:35 +00:00

LibJS/Bytecode: Fuse [Not, JumpIf] instructions into JumpIfNot

This commit is contained in:
Andreas Kling 2024-03-03 17:27:53 +01:00
parent 4438ec481c
commit 795149e585
5 changed files with 53 additions and 0 deletions

View file

@ -71,6 +71,7 @@ static void generate_cfg_for_block(BasicBlock const& current_block, PassPipeline
#undef JS_ENUMERATE_FUSABLE_BINARY_OP
case JumpIf:
case JumpIfNot:
case JumpNullish:
case JumpUndefined: {
// FIXME: It would be nice if we could avoid this copy, if we know that the unwind context stays the same in both paths