[llvm] [InstCombine] fix assertion failure in intrinsic distributive laws (PR #216483)
Andreas Jonson via llvm-commits
llvm-commits at lists.llvm.org
Sun Aug 16 01:26:32 PDT 2026
================
@@ -0,0 +1,19 @@
+; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
+; RUN: opt -S -passes=instcombine %s | FileCheck %s
+
+declare i32 @llvm.smin.i32(i32, i32)
+
+define i32 @test_intrinsic_distributive_laws_crash(i32 %g, i32 %h, i32 %i) {
----------------
andjo403 wrote:
reduced it more here https://godbolt.org/z/13bM1qae3 as the users list is sorted in order was possible to only swap place of two instructions
https://github.com/llvm/llvm-project/pull/216483
More information about the llvm-commits
mailing list