[llvm] Add option to print entire function instead of just the loops for loo… (PR #123229)
Arthur Eubanks via llvm-commits
llvm-commits at lists.llvm.org
Fri Jan 17 16:57:08 PST 2025
================
@@ -0,0 +1,75 @@
+; This test documents how the IR dumped for loop passes differs with -print-loop-func-scope
+; and -print-module-scope
+; - Without -print-loop-func-scope, dumps only the loop, with 3 sections- preheader,
+; loop, and exit blocks
+; - With -print-loop-func-scope, dumps only the function which contains the loop
+; - With -print-module-scope, dumps the entire module containing the loop, and disregards
+; the -print-loop-func-scope flag.
+
+; RUN: opt < %s 2>&1 -disable-output \
+; RUN: -passes=licm -print-after=licm\
----------------
aeubanks wrote:
```suggestion
; RUN: -passes=licm -print-after=licm \
```
https://github.com/llvm/llvm-project/pull/123229
More information about the llvm-commits
mailing list