forked from triton-lang/triton
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[DEBUG] Add support for print-after-all etc for llvm passes in optimi…
…ze_module (triton-lang#2995) This is guarded with LLVM_IR_ENABLE_DUMP. translateLLVMIRToASM is using the legacy pass manager, it doesn't need this hook. I haven't figured out how to set PrintAfterAll with this env variable. Another related issue is triton-llvm-opt doesn't have the same pipeline setup. See https://github.com/openai/triton/blob/e6e5d5468e92ed3af3e40babdd55c3da506ab01f/bin/triton-llvm-opt.cpp#L61. It may be worthwhile to also add O3 pipeline as https://github.com/openai/triton/blob/e6e5d5468e92ed3af3e40babdd55c3da506ab01f/python/src/llvm.cc#L192. Ideally we want triton-llvm-opt to run on the un-optimized llir (i.e with DISABLE_LLVM_OPT) and to have the same optimizations as optimize_module, in order to reproduce issues. --------- Co-authored-by: Manman Ren <[email protected]> Co-authored-by: Keren Zhou <[email protected]>
- Loading branch information
1 parent
075701a
commit 5f60092
Showing
3 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters