Skip to content

Branch hint fuzz bug with --code-pushing #8622

@tlively

Description

@tlively

repro.zip

$ ./repro.sh
+ bin/wasm-opt -all b.wast -S -o b.inst.wast --randomize-branch-hints --instrument-branch-hints -g
+ bin/wasm-opt -all b.inst.wast --fuzz-exec-before
[fuzz-exec] export test
[LoggingExternalInterface log-branch 1 1 0]
[LoggingExternalInterface logging 0]
[LoggingExternalInterface log-branch 2 1 1]
warning: no passes specified, not doing any work
warning: no output file specified, not emitting output
+ bin/wasm-opt -all b.inst.wast -S -o b.de_inst.wast --delete-branch-hints=1 --deinstrument-branch-hints -g
+ bin/wasm-opt -all b.de_inst.wast -S -o b.opted.wast -g --code-pushing
+ bin/wasm-opt -all b.opted.wast -S -o b.final.wast --instrument-branch-hints -g
+ bin/wasm-opt -all b.final.wast --fuzz-exec-before
[fuzz-exec] export test
[LoggingExternalInterface logging 0]
[LoggingExternalInterface log-branch 1 1 1]
warning: no passes specified, not doing any work
warning: no output file specified, not emitting output

So it looks like branch hint number 1 changed results, but looking at the original instrumentation and the final instrumentation, it's maybe a completely different branch??? Not really sure what the correct next step is.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions