[LLVMbugs] [Bug 9846] New: Assertion `B->end <= Start && "Cannot overlap two LiveRanges with differing ValID's" " (did you def the same reg twice in a MachineInstr?)"' failed.

bugzilla-daemon at llvm.org bugzilla-daemon at llvm.org
Wed May 4 23:08:43 PDT 2011


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

           Summary: Assertion `B->end <= Start && "Cannot overlap two
                    LiveRanges with differing ValID's" " (did you def the
                    same reg twice in a MachineInstr?)"' failed.
           Product: new-bugs
           Version: trunk
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
        AssignedTo: unassignedbugs at nondot.org
        ReportedBy: regehr at cs.utah.edu
                CC: llvmbugs at cs.uiuc.edu, chenyang at cs.utah.edu


[regehr at gamow tmp019]$ clang -c -w -O2 small.c
clang: LiveInterval.cpp:267: llvm::LiveRange*
llvm::LiveInterval::addRangeFrom(llvm::LiveRange, llvm::LiveRange*): Assertion
`B->end <= Start && "Cannot overlap two LiveRanges with differing ValID's" "
(did you def the same reg twice in a MachineInstr?)"' failed.
0  clang           0x00000000018e1acf
1  clang           0x00000000018e3d42
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           0x0000000001543b8d
llvm::LiveInterval::addRangeFrom(llvm::LiveRange, llvm::LiveRange*) + 973
7  clang           0x000000000154b4ea
llvm::LiveIntervals::handleLiveInRegister(llvm::MachineBasicBlock*,
llvm::SlotIndex, llvm::LiveInterval&, bool) + 538
8  clang           0x0000000001552f84 llvm::LiveIntervals::computeIntervals() +
340
9  clang           0x00000000015536f3
llvm::LiveIntervals::runOnMachineFunction(llvm::MachineFunction&) + 627
10 clang           0x000000000182e2cb
llvm::FPPassManager::runOnFunction(llvm::Function&) + 587
11 clang           0x000000000182e3cb
llvm::FPPassManager::runOnModule(llvm::Module&) + 75
12 clang           0x000000000182ddc7
llvm::MPPassManager::runOnModule(llvm::Module&) + 503
13 clang           0x000000000182df5b llvm::PassManagerImpl::run(llvm::Module&)
+ 187
14 clang           0x00000000007c7dde
15 clang           0x00000000007c8a0d
clang::EmitBackendOutput(clang::Diagnostic&, clang::CodeGenOptions const&,
clang::TargetOptions const&, llvm::Module*, clang::BackendAction,
llvm::raw_ostream*) + 189
16 clang           0x00000000007c53fb
clang::BackendConsumer::HandleTranslationUnit(clang::ASTContext&) + 251
17 clang           0x00000000008f525d clang::ParseAST(clang::Sema&, bool) + 413
18 clang           0x00000000007c4744 clang::CodeGenAction::ExecuteAction() +
68
19 clang           0x00000000006b09f3
clang::CompilerInstance::ExecuteAction(clang::FrontendAction&) + 371
20 clang           0x0000000000688124
clang::ExecuteCompilerInvocation(clang::CompilerInstance*) + 1268
21 clang           0x000000000067efdb cc1_main(char const**, char const**, char
const*, void*) + 683
22 clang           0x0000000000686f77 main + 6295
23 libc.so.6       0x00007ffff6ea9c4d __libc_start_main + 253
24 clang           0x000000000067d4a9
Stack dump:
0.    Program arguments:
/uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r130907-install/bin/clang
-cc1 -triple x86_64-unknown-linux-gnu -emit-obj -disable-free -main-file-name
small.c -mrelocation-model static -mdisable-fp-elim -masm-verbose
-mconstructor-aliases -munwind-tables -target-cpu x86-64 -target-linker-version
2.20.1 -momit-leaf-frame-pointer -coverage-file small.o -resource-dir
/uusoc/exports/scratch/regehr/z/compiler-install/llvm-gcc-r130907-install/bin/../lib/clang/3.0
-O2 -w -ferror-limit 19 -fmessage-length 81 -fgnu-runtime
-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 '@func_55'
clang: error: unable to execute command: Aborted
clang: error: clang frontend command failed due to signal 1 (use -v to see
invocation)

[regehr at gamow tmp019]$ clang -v 

clang version 3.0 (trunk 130907)
Target: x86_64-unknown-linux-gnu
Thread model: posix

[regehr at gamow tmp019]$ cat small.c


short
safe_14 (int si1, short si2)
{
  return si1 && si2 && (1 / si2) || si2 <= 0 && si2 < -32767 + si1 ? 0 : si2;
}

int g_61;
int g_90;
int
func_55 (int p_56, int p_57)
{
  int *l_60 = &g_61;
  int *l_346 = &g_90;
  *l_60 = safe_14 (1, *l_346 == 0);
  return 0;
}

-- 
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