VIP 👤
🏠 Inicio
Pruebas de rendimiento
📊 Todos los benchmarks 🦖 Dinosaurio v1 🦖 Dinosaurio v2 ✅ Aplicaciones To-Do List 🎨 Páginas libres creativas 🎯 FSACB - Showcase definitivo 🌍 Benchmark de traducción
Modelos
🏆 Top 10 modelos 🆓 Modelos gratuitos 📋 Todos los modelos ⚙️ Kilo Code
Recursos
💬 Biblioteca de prompts 📖 Glosario de IA 🔗 Enlaces útiles 🔌 API y 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.