[all-commits] [llvm/llvm-project] 92e777: [WebAssembly] Invert branch condition on xor input

Sam Parker via All-commits all-commits at lists.llvm.org
Thu Apr 1 01:24:22 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 92e7771483597935bce523a6f2a1b6109efe7af0
      https://github.com/llvm/llvm-project/commit/92e7771483597935bce523a6f2a1b6109efe7af0
  Author: Sam Parker <sam.parker at arm.com>
  Date:   2021-04-01 (Thu, 01 Apr 2021)

  Changed paths:
    M llvm/lib/Target/WebAssembly/WebAssemblyInstrControl.td
    M llvm/lib/Target/WebAssembly/WebAssemblyInstrInfo.td
    M llvm/test/CodeGen/WebAssembly/comparisons-f32.ll
    M llvm/test/CodeGen/WebAssembly/comparisons-f64.ll

  Log Message:
  -----------
  [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




More information about the All-commits mailing list