VIP 👤
🏠 Home
Benchmark Hub
📊 All Benchmarks 🦖 Dinosaur v1 🦖 Dinosaur v2 ✅ To-Do List Applications 🎨 Creative Free Pages 🎯 FSACB - Ultimate Showcase 🌍 Translation Benchmark
Models
🏆 Top 10 Models 🆓 Free Models 📋 All Models ⚙️ Kilo Code
Resources
💬 Prompts Library 📖 AI Glossary 🔗 Useful Links 🔌 API & Routers
advanced

LLVM IR Optimization Pass Strategy

#compilers #llvm #optimization

Design a custom optimization pass for LLVM Intermediate Representation to minimize loop overhead in numerical computations.

Act as a Compiler Engineer. You are tasked with writing a design document for a new LLVM IR optimization pass. The goal is to aggressively optimize nested loops performing matrix multiplication. Your response should detail: 1. Which existing passes (e.g., LoopVectorize, SLPVectorizer) must run before your pass. 2. The specific analysis required (e.g., dependence analysis). 3. The transformations you will apply (e.g., loop unrolling, tiling, fusion). 4. Potential safety hazards and verification steps. Describe the logic in pseudo-code for the core transformation function.