https://bugs.llvm.org/show_bug.cgi?id=48449

            Bug ID: 48449
           Summary: "WebAssembly Fix Irreducible Control Flow" pass OOMs
                    on a huge function
           Product: new-bugs
           Version: 11.0
          Hardware: PC
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: mej...@gmail.com
                CC: htmldevelo...@gmail.com, llvm-bugs@lists.llvm.org

Created attachment 24250
  --> https://bugs.llvm.org/attachment.cgi?id=24250&action=edit
LLVM IR that causes OOM

Clang/lib/AST/Interp/Disasm.cpp takes excessive time and resources to compile
when targeting WebAssembly. Memory usage exceeds 10GiB. It tends to OOM in
smaller machines.

The frontend completes without issues.

When running

clang -c Disasm.bc -mllvm -debug-pass=Executions

the last line printed before OOM is

[2020-12-08 19:16:08.463129734] 0x2d4fc70 Executing Pass 'WebAssembly Fix
Irreducible Control Flow' on Function
'_ZNK5clang6interp8Function4dumpERN4llvm11raw_ostreamE'

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to