[llvm] [InstCombine] Don't assert on samesign ule/uge of sext (PR #216079)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 13 08:55:25 PDT 2026


================
@@ -0,0 +1,69 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
+; RUN: opt < %s -passes=instcombine -S | FileCheck %s
+
+; Make sure we do not assert in foldICmpWithZextOrSext when an icmp samesign
+; ule/uge of a sext cannot be canonicalized to ugt/ult.
+; https://github.com/llvm/llvm-project/issues/216058
+
+define i1 @samesign_ule_sext_i16_smax(i16 %x) {
----------------
dtcxzyw wrote:

Only keeps one function that triggers the assertion.


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


More information about the llvm-commits mailing list