HomePhabricator

[WebAssembly] Invert branch condition on xor input

Authored by samparker on Mar 31 2021, 1:25 AM.

Description

[WebAssembly] Invert branch condition on xor input

A frequent pattern for floating point conditional branches use an xor
to invert the input for the branch. Instead we can fold away the xor
by swapping the branch target instead.

Differential Revision: https://reviews.llvm.org/D99171

Details