(논문 요약) Meta Large Language Model Compiler: Foundation Models of Compiler Optimization (Paper)
핵심 내용
Compiler emulation: pass list (optimization arguments) 넣고 opt 실행한 결과를 학습
- Flag tuning: Unoptimized intermediate representation (IR) 을 prompt 로 주고 best pass list 를 출력하도록 학습
- pass list 를 여러개 넣고 돌린 뒤, 가장 좋은 것을 고름
- pass list 를 여러개 넣고 돌린 뒤, 가장 좋은 것을 고름
- Disassembly finetuning: assembly code 로 부터 intermediate representations (IR) 복원
학습
- Flowchart
- pretrain 이후, compiler emulation, flag tuning, disassembly fine-tuning 진행
- pretrain 이후, compiler emulation, flag tuning, disassembly fine-tuning 진행
- Data
실험결과
- -Oz (size optimization pass list) 보다 나음