VIP 👤
🏠 Trang chủ
Benchmark
📊 Tất cả benchmark 🦖 Khủng long v1 🦖 Khủng long v2 ✅ Ứng dụng To-Do List 🎨 Trang tự do sáng tạo 🎯 FSACB - Trình diễn cuối cùng 🌍 Benchmark dịch thuật
Mô hình
🏆 Top 10 mô hình 🆓 Mô hình miễn phí 📋 Tất cả mô hình ⚙️ Kilo Code
Tài nguyên
💬 Thư viện prompt 📖 Thuật ngữ AI 🔗 Liên kết hữu ích 🔌 API và bộ định tuyến AI
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.