[LLVMbugs] [Bug 12021] New: Assertion `isRegLiveOutOf(MBB, interval.reg) && "Live in reg untouched in block should be be live through."' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Thu Feb 16 14:54:46 PST 2012


http://llvm.org/bugs/show_bug.cgi?id=12021

             Bug #: 12021
           Summary: Assertion `isRegLiveOutOf(MBB, interval.reg) && "Live
                    in reg untouched in block should be be live through."'
                    failed.
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: regehr at cs.utah.edu
                CC: chenyang at cs.utah.edu, llvmbugs at cs.uiuc.edu
    Classification: Unclassified


[regehr at gamow 4]$ clang -v
clang version 3.1 (trunk 150705)
Target: x86_64-unknown-linux-gnu
Thread model: posix
[regehr at gamow 4]$ cat small.c
int b, d, h;

void fn1 (char);

void fn2 (void)
{
  int i;
  if (i = 0 || d) {
    if (h)
      b = i;
  } else
    for (;;)
      fn1 (i);
}
[regehr at gamow 4]$ clang -O1 small.c -c
small.c:8:9: warning: using the result of an assignment as a condition without
parentheses
      [-Wparentheses]
  if (i = 0 || d) {
      ~~^~~~~~~~
small.c:8:9: note: place parentheses around the assignment to silence this
warning
  if (i = 0 || d) {
        ^
      (         )
small.c:8:9: note: use '==' to turn this assignment into an equality comparison
  if (i = 0 || d) {
        ^
        ==
clang: LiveIntervalAnalysis.cpp:537: void
llvm::LiveIntervals::handleLiveInRegister(llvm::MachineBasicBlock*,
llvm::SlotIndex, llvm::LiveInterval&): Assertion `isRegLiveOutOf(MBB,
interval.reg) && "Live in reg untouched in block should be be live through."'
failed.
0  clang           0x0000000001e336bf
1  clang           0x0000000001e35932
2  libpthread.so.0 0x00007ffff7bcf8f0
3  libc.so.6       0x00007ffff6ebea75 gsignal + 53
4  libc.so.6       0x00007ffff6ec25c0 abort + 384
5  libc.so.6       0x00007ffff6eb7941 __assert_fail + 241
6  clang           0x00000000019a075c
llvm::LiveIntervals::handleLiveInRegister(llvm::MachineBasicBlock*,
llvm::SlotIndex, llvm::LiveInterval&) + 1212
7  clang           0x00000000019a0afc llvm::LiveIntervals::computeIntervals() +
444
8  clang           0x00000000019a1495
llvm::LiveIntervals::runOnMachineFunction(llvm::MachineFunction&) + 581
9  clang           0x0000000001dd147b
llvm::FPPassManager::runOnFunction(llvm::Function&) + 587
10 clang           0x0000000001dd1563
llvm::FPPassManager::runOnModule(llvm::Module&) + 51
11 clang           0x0000000001dd0f51
llvm::MPPassManager::runOnModule(llvm::Module&) + 497
12 clang           0x0000000001dd10db llvm::PassManagerImpl::run(llvm::Module&)
+ 187
13 clang           0x00000000007be91c
clang::EmitBackendOutput(clang::DiagnosticsEngine&, clang::CodeGenOptions
const&, clang::TargetOptions const&, clang::LangOptions const&, llvm::Module*,
clang::BackendAction, llvm::raw_ostream*) + 1612
14 clang           0x00000000007bbb89
15 clang           0x00000000009161d1 clang::ParseAST(clang::Sema&, bool) + 465
16 clang           0x00000000007ba754 clang::CodeGenAction::ExecuteAction() +
68
17 clang           0x000000000065e6e1
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 321
18 clang           0x0000000000647129
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1609
19 clang           0x000000000063c1f0 cc1_main(char const**, char const**, char
const*, void*) + 960
20 clang           0x0000000000645e27 main + 7143
21 libc.so.6       0x00007ffff6ea9c4d __libc_start_main + 253
22 clang           0x0000000000639a39
Stack dump:
0.    Program arguments:
/uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r150705-install/bin/clang
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
small.c -mrelocation-model static -masm-verbose -mconstructor-aliases
-munwind-tables -target-cpu x86-64 -momit-leaf-frame-pointer -coverage-file
small.o -resource-dir
/uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r150705-install/bin/../lib/clang/3.1
-fmodule-cache-path /var/tmp/clang-module-cache -I
/opt/intel/composer_xe_2011_sp1.7.256/mkl/include -I
/opt/intel/composer_xe_2011_sp1.7.256/tbb/include -internal-isystem
/usr/local/include -internal-isystem
/uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r150705-install/bin/../lib/clang/3.1/include
-internal-externc-isystem /usr/include/x86_64-linux-gnu
-internal-externc-isystem /include -internal-externc-isystem /usr/include -O1
-fdebug-compilation-dir /home/regehr/z/reduce/4 -ferror-limit 19
-fmessage-length 101 -mstackrealign -fgnu-runtime -fobjc-runtime-has-arc
-fobjc-runtime-has-weak -fobjc-fragile-abi -fdiagnostics-show-option
-fcolor-diagnostics -o small.o -x c small.c 
1.    <eof> parser at end of file
2.    Code generation
3.    Running pass 'Function Pass Manager' on module 'small.c'.
4.    Running pass 'Live Interval Analysis' on function '@fn2'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
clang: note: diagnostic msg: Please submit a bug report to
http://llvm.org/bugs/ and include command line arguments and all diagnostic
information.
clang: note: diagnostic msg: Preprocessed source(s) and associated run
script(s) are located at:
clang: note: diagnostic msg: /tmp/small-FZTqpB.i
clang: note: diagnostic msg: /tmp/small-FZTqpB.sh

-- 
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.



More information about the llvm-bugs mailing list