<html>
    <head>
      <base href="https://bugs.llvm.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Failed to run matmul.c example by follow "How to manually use the Individual pieces of Polly" at https://polly.llvm.org/docs/HowToManuallyUseTheIndividualPiecesOfPolly.html#execute-the-individual-polly-passes-manually"
   href="https://bugs.llvm.org/show_bug.cgi?id=50524">50524</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>Failed to run matmul.c  example by follow "How to manually use the Individual pieces of Polly" at https://polly.llvm.org/docs/HowToManuallyUseTheIndividualPiecesOfPolly.html#execute-the-individual-polly-passes-manually
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Polly
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>PC
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>enhancement
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>P
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>Optimizer
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>polly-dev@googlegroups.com
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>haijunz@sina.com
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>llvm-bugs@lists.llvm.org
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Root cause : if remove pre-uploaded intermidated files  "rm *.ll; rm init*; rm
main*" .   by follow "How to manually use the Individual pieces of Polly" at
<a href="https://polly.llvm.org/docs/HowToManuallyUseTheIndividualPiecesOfPolly.html#execute-the-individual-polly-passes-manually">https://polly.llvm.org/docs/HowToManuallyUseTheIndividualPiecesOfPolly.html#execute-the-individual-polly-passes-manually</a>.


reporduce:

(1) check env:
   (base) haijunz3@haijunz3:~/polly/llvm_git/polly/docs/experiments/matmul$ ls
*main*
main___%for.cond1.preheader---%for.end30.jscop                           
scops.main.dot
main___%for.cond1.preheader---%for.end30.jscop.interchanged              
scops.main.dot.png
main___%for.cond1.preheader---%for.end30.jscop.interchanged+tiled        
scopsonly.main.dot
main___%for.cond1.preheader---%for.end30.jscop.interchanged+tiled+vector 
scopsonly.main.dot.png
(base) haijunz3@haijunz3:~/polly/llvm_git/polly/docs/experiments/matmul$ ls
*init*
init_array___%for.cond1.preheader---%for.end19.jscop
init_array___%for.cond1.preheader---%for.end19.jscop.interchanged
init_array___%for.cond1.preheader---%for.end19.jscop.interchanged+tiled
init_array___%for.cond1.preheader---%for.end19.jscop.interchanged+tiled+vector
scops.init_array.dot
scops.init_array.dot.png
scopsonly.init_array.dot
scopsonly.init_array.dot.png
(base) haijunz3@haijunz3:~/polly/llvm_git/polly/docs/experiments/matmul$ ls
*.ll
matmul.ll                     matmul.polly.interchanged+tiled.ll               
matmul.preopt.ll
matmul.normalopt.ll           matmul.polly.interchanged+tiled+vector.ll
matmul.polly.interchanged.ll  matmul.polly.interchanged+tiled+vector+openmp.ll
(base) haijunz3@haijunz3:~/polly/llvm_git/polly/docs/experiments/matmul$ rm
*.ll
(base) haijunz3@haijunz3:~/polly/llvm_git/polly/docs/experiments/matmul$ rm
*init*
(base) haijunz3@haijunz3:~/polly/llvm_git/polly/docs/experiments/matmul$ rm
*main*
(base) haijunz3@haijunz3:~/polly/llvm_git/polly/docs/experiments/matmul$ ls
*int*
matmul.polly.interchanged.s                      scopsonly.print_array.dot
matmul.polly.interchanged+tiled.s                scopsonly.print_array.dot.png
matmul.polly.interchanged+tiled+vector+openmp.s  scops.print_array.dot
matmul.polly.interchanged+tiled+vector.s         scops.print_array.dot.png
(base) haijunz3@haijunz3:~/polly/llvm_git/polly/docs/experiments/matmul$ ls
*main*
ls: cannot access '*main*': No such file or directory
(base) haijunz3@haijunz3:~/polly/llvm_git/polly/docs/experiments/matmul$ ls
*.ll
ls: cannot access '*.ll': No such file or directory


(2) follow  "How to manually use the Individual pieces of Polly" at
<a href="https://polly.llvm.org/docs/HowToManuallyUseTheIndividualPiecesOfPolly.html#execute-the-individual-polly-passes-manually">https://polly.llvm.org/docs/HowToManuallyUseTheIndividualPiecesOfPolly.html#execute-the-individual-polly-passes-manually</a>


 A: failed at: 4. Highlight the detected SCoPs in the CFGs of the program
(requires graphviz/dotty)
(base) haijunz3@haijunz3:~/polly/llvm_git/polly/docs/experiments/matmul$ opt
-polly-use-llvm-names -basic-aa -view-scops -disable-output matmul.preopt.ll
opt: unknown pass name 'view-scops'
(base) haijunz3@haijunz3:~/polly/llvm_git/polly/docs/experiments/matmul$ opt
-polly-use-llvm-names -basic-aa -view-scops-only -disable-output
matmul.preopt.ll
opt: unknown pass name 'view-scops-only'


 B: failed at 8. Import the changed jscop files and print the updated SCoP
structure (optional)
   Loop Interchange (and Fission to allow the interchange
  (base) haijunz3@haijunz3:~/polly/llvm_git/polly/docs/experiments/matmul$ opt
-basic-aa -polly-use-llvm-names matmul.preopt.ll -polly-import-jscop
-polly-import-jscop-postfix=interchanged -polly-ast -analyze
-polly-process-unprofitable
Printing analysis 'Basic Alias Analysis (stateless AA impl)' for function
'init_array':
Pass::print not implemented for pass: 'Basic Alias Analysis (stateless AA
impl)'!
Printing analysis 'Polly - Import Scops from JSON (Reads a .jscop file for each
Scop)' for region: 'for.body3 => for.inc17' in function 'init_array':
Printing analysis 'Polly - Generate an AST from the SCoP (isl)' for region:
'for.body3 => for.inc17' in function 'init_array':
Reading JScop '%for.cond1.preheader---%for.end19' in function 'init_array' from
'./init_array___%for.cond1.preheader---%for.end19.jscop.interchanged'.
File could not be read: No such file or directory
LLVM ERROR: Tried to import a malformed jscop file.
PLEASE submit a bug report to <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash
backtrace.
Stack dump:
.....




Interchange + Tiling
(base) haijunz3@haijunz3:~/polly/llvm_git/polly/docs/experiments/matmul$ opt
-basic-aa -polly-use-llvm-names matmul.preopt.ll -polly-import-jscop
-polly-import-jscop-postfix=interchanged+tiled -polly-ast -analyze
-polly-process-unprofitable
Printing analysis 'Basic Alias Analysis (stateless AA impl)' for function
'init_array':
Pass::print not implemented for pass: 'Basic Alias Analysis (stateless AA
impl)'!
Printing analysis 'Polly - Import Scops from JSON (Reads a .jscop file for each
Scop)' for region: 'for.body3 => for.inc17' in function 'init_array':
Printing analysis 'Polly - Generate an AST from the SCoP (isl)' for region:
'for.body3 => for.inc17' in function 'init_array':
Reading JScop '%for.cond1.preheader---%for.end19' in function 'init_array' from
'./init_array___%for.cond1.preheader---%for.end19.jscop.interchanged+tiled'.
File could not be read: No such file or directory
LLVM ERROR: Tried to import a malformed jscop file.
PLEASE submit a bug report to <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash
backtrace.
Stack dump:

.....


Interchange + Tiling + Strip-mining to prepare vectorization

(base) haijunz3@haijunz3:~/polly/llvm_git/polly/docs/experiments/matmul$ opt
-basic-aa -polly-use-llvm-names matmul.preopt.ll -polly-import-jscop
-polly-import-jscop-postfix=interchanged+tiled -polly-ast -analyze
-polly-process-unprofitable
Printing analysis 'Basic Alias Analysis (stateless AA impl)' for function
'init_array':
Pass::print not implemented for pass: 'Basic Alias Analysis (stateless AA
impl)'!
Printing analysis 'Polly - Import Scops from JSON (Reads a .jscop file for each
Scop)' for region: 'for.body3 => for.inc17' in function 'init_array':
Printing analysis 'Polly - Generate an AST from the SCoP (isl)' for region:
'for.body3 => for.inc17' in function 'init_array':
Reading JScop '%for.cond1.preheader---%for.end19' in function 'init_array' from
'./init_array___%for.cond1.preheader---%for.end19.jscop.interchanged+tiled'.
File could not be read: No such file or directory
LLVM ERROR: Tried to import a malformed jscop file.
PLEASE submit a bug report to <a href="https://bugs.llvm.org/">https://bugs.llvm.org/</a> and include the crash
backtrace.
Stack dump:
0.      Program arguments: opt -basic-aa -polly-use-llvm-names matmul.preopt.ll
-polly-import-jscop -polly-import-jscop-postfix=interchanged+tiled -polly-ast
-analyze -polly-process-unprofitable
1.      Running pass 'Function Pass Manager' on module 'matmul.preopt.ll'.
2.      Running pass 'Region Pass Manager' on function '@init_array'
3.      Running pass 'Polly - Import Scops from JSON (Reads a .jscop file for
each Scop)' on basic block '%for.cond1.preheader'



.....



so cannot move to 9. Codegenerate the SCoPs</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are on the CC list for the bug.</li>
      </ul>
    </body>
</html>