[PATCH] D99171: [WebAssembly] Fold xor by inverting branch target

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 24 00:54:20 PDT 2021


samparker updated this revision to Diff 332883.
samparker added a comment.

Thanks all. I've added a PatLeaf to detect a boolean, but I wasn't sure how to write a negative test using LLVM IR considering that the branch always takes an i1. Any ideas?


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D99171/new/

https://reviews.llvm.org/D99171

Files:
  llvm/lib/Target/WebAssembly/WebAssemblyInstrControl.td
  llvm/test/CodeGen/WebAssembly/comparisons-f32.ll
  llvm/test/CodeGen/WebAssembly/comparisons-f64.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D99171.332883.patch
Type: text/x-patch
Size: 6323 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210324/ac7aa15e/attachment.bin>


More information about the llvm-commits mailing list