mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:27:45 +00:00
LibJS/Bytecode: Fuse [Not, JumpIf] instructions into JumpIfNot
This commit is contained in:
parent
4438ec481c
commit
795149e585
5 changed files with 53 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue