[llvm] [SelectionDAG] Expand [US]CMP using arithmetic on boolean values instead of selects (PR #98774)

Nikita Popov via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 16 01:14:06 PDT 2024


================
@@ -0,0 +1,155 @@
+; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5
+; RUN: llc < %s -disable-wasm-fallthrough-return-opt -wasm-keep-registers | FileCheck %s
+
+target triple = "wasm32-unknown-unknown"
+
+define i8 @scmp.8.8(i8 %x, i8 %y) nounwind {
----------------
nikic wrote:

signext/zeroext here as well.

https://github.com/llvm/llvm-project/pull/98774


More information about the llvm-commits mailing list