[llvm] fix assertion failure in intrinsic distributive laws (PR #216483)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 15 08:45:31 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) {
----------------
im-lunex wrote:
the crash was only happening for just clang and on the main branch
for main -> ./build/bin/clang -x c -01 -w ./repro.cpp => crash
for fix -> ./build/bin/clang -x c -01 -w ./repro.cpp => ok
https://github.com/llvm/llvm-project/pull/216483
More information about the llvm-commits
mailing list