Skip to content

Instantly share code, notes, and snippets.

@sohaibiftikhar
sohaibiftikhar / failure-after-loop-vectorize.ll
Created February 17, 2026 13:49
Reproducer#LLVM#149706
; *** IR Dump After LoopVectorizePass on broadcast_add_fusion ***
; Function Attrs: nofree norecurse nosync nounwind memory(readwrite, target_mem0: none, target_mem1: none) uwtable
define noalias noundef ptr @broadcast_add_fusion(ptr readonly captures(none) %0) local_unnamed_addr #0 {
%2 = getelementptr inbounds nuw i8, ptr %0, i64 24
%3 = load ptr, ptr %2, align 8, !invariant.load !3
%4 = load ptr, ptr %3, align 8, !invariant.load !3, !dereferenceable !4
%5 = getelementptr inbounds nuw i8, ptr %3, i64 16
%6 = load ptr, ptr %5, align 8, !invariant.load !3, !dereferenceable !5
%7 = getelementptr inbounds nuw i8, ptr %3, i64 32
%8 = load ptr, ptr %7, align 8, !invariant.load !3, !dereferenceable !4
@sohaibiftikhar
sohaibiftikhar / corrected_ir
Last active December 4, 2025 13:01
llvm_169061_csan_logs
module attributes {gpu.container_module} {
llvm.func @malloc(i64) -> !llvm.ptr
llvm.func @main() {
%0 = llvm.mlir.constant(2 : index) : i64 // Rank = 2
%1 = llvm.mlir.poison : !llvm.struct<(ptr, ptr, i64, array<2 x i64>, array<2 x i64>)>
%2 = llvm.mlir.zero : !llvm.ptr
%3 = llvm.mlir.constant(1.000000e+00 : f64) : f64
%4 = llvm.mlir.constant(3.140000e+00 : f64) : f64
%5 = llvm.mlir.constant(0 : index) : i64
%6 = llvm.mlir.constant(8 : index) : i64
@sohaibiftikhar
sohaibiftikhar / mixins.java
Last active June 25, 2018 22:21
java mixins
class A {
public int a() {
return 1;
}
}
class B1 extends A {
public int b() {
return a() + 1;
}