[llvm-bugs] [Bug 34267] New: [ICE][coroutines] Instruction does not dominate all uses

via llvm-bugs llvm-bugs at lists.llvm.org
Mon Aug 21 13:48:02 PDT 2017


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

            Bug ID: 34267
           Summary: [ICE][coroutines] Instruction does not dominate all
                    uses
           Product: clang
           Version: trunk
          Hardware: PC
                OS: All
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: eniebler at boost.org
                CC: llvm-bugs at lists.llvm.org

Created attachment 19021
  --> https://bugs.llvm.org/attachment.cgi?id=19021&action=edit
repro

clang++ corobug.cpp -Wall -Wextra -O2 -march=native -std=gnu++2a
"-fcoroutines-ts"

results in:

Instruction does not dominate all uses!
  %23 = call noalias nonnull i8* @llvm.coro.begin(token %12, i8* %21), !noalias
!45
  %63 = phi i8* [ %23, %61 ]
fatal error: error in backend: Broken function found, compilation aborted!
clang-6.0: error: clang frontend command failed with exit code 70 (use -v to
see invocation)
clang version 6.0.0 (https://github.com/llvm-mirror/clang.git
fbdebfae845511dae1ff852aa303205a1dee5ebf)
(https://github.com/llvm-mirror/llvm.git
3ef5d9d5ddb0b40bea3f7bcb2163aeff0280acdb)
Target: x86_64-unknown-linux-gnu
Thread model: posix
InstalledDir: /opt/wandbox/clang-head/bin

(See https://wandbox.org/permlink/Xb9KQ90mgHyovhXF)

Compiling without optimization results in no error.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20170821/20558e2e/attachment.html>


More information about the llvm-bugs mailing list