[LLVMbugs] [Bug 12010] New: BranchProbabilityInfo::getSumForBlock asserts
bugzilla-daemon at llvm.org
bugzilla-daemon at llvm.org
Wed Feb 15 11:12:19 PST 2012
http://llvm.org/bugs/show_bug.cgi?id=12010
Bug #: 12010
Summary: BranchProbabilityInfo::getSumForBlock asserts
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: ahatanak at gmail.com
CC: llvmbugs at cs.uiuc.edu
Classification: Unclassified
Created attachment 8058
--> http://llvm.org/bugs/attachment.cgi?id=8058
.ll file
This is the command I ran:
$ llc pr35800.ll -o - -mcpu=mips64r2 -mattr=n64 -debug
llc:
/home/ahatanaka/projects/llvm/trunk-rw1/llvm/lib/Analysis/BranchProbabilityInfo.cpp:430:
uint32_t llvm::BranchProbabilityInfo::getSumForBlock(const llvm::BasicBlock*)
const: Assertion `Sum > PrevSum' failed.
Program received signal SIGABRT, Aborted.
0x00007ffff6ebea75 in *__GI_raise (sig=<value optimized out>)
at ../nptl/sysdeps/unix/sysv/linux/raise.c:64
64 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
in ../nptl/sysdeps/unix/sysv/linux/raise.c
It seems that the type of Sum (unit32_t) is not large enough to hold Sum +
Weight:
(gdb) up
#3 0x000000000111ee7a in llvm::BranchProbabilityInfo::getSumForBlock (
this=0x1e9b0e0, BB=0x1e7e740)
at
/home/ahatanaka/projects/llvm/trunk-rw1/llvm/lib/Analysis/BranchProbabilityInfo.cpp:430
430 assert(Sum > PrevSum); (void) PrevSum;
(gdb) p /x Sum
$6 = 0x60
(gdb) p /x PrevSum
$7 = 0xf0000060
(gdb) p /x Weight
$8 = 0x10000000
--
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