[llvm] [InstCombine] fix assertion failure in intrinsic distributive laws (PR #216483)
via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 15 09:30: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) {
----------------
im-lunex wrote:
> You need to get the IR reproducer first using `clang -emit-llvm -S -mllvm -opt-bisect-limit=<n>`. It should be reproduced successfully with `opt -passes=instcombine`. Then you should use `llvm-reduce` to minimize the reproducer. Note that the InstCombine pass should be disabled during reduction via `--ir-passes=`.
thanks for the info, im really new to this repo and have lack of experience ig... and thank you very much for the guidance. and really sorry if i have done something non-sense or answered out of point.. again im very new to this repo... so hope you will understand.. THANKS
https://github.com/llvm/llvm-project/pull/216483
More information about the llvm-commits
mailing list