http://llvm.org/bugs/show_bug.cgi?id=5107
Summary: Division by zero in
SimpleRegisterCoalescing::isWinToJoinCrossClass()
Product: libraries
Version: 2.6
Platform: PC
OS/Version: Windows XP
Status: NEW
Severity: major
Priority: P2
Component: Backend: X86
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected]
Crash due to vivision by zero in
SimpleRegisterCoalescing::isWinToJoinCrossClass()
SmallSize can be some times zero and this will crash LLVM.
Solution for now is to add this
if(LargeSize<=0) LargeSize=1;
if(SmallSize<=0) SmallSize=1;
before
if (SmallSize > Threshold || LargeSize > Threshold)
if ((float)std::distance(mri_->use_begin(SmallReg),mri_->use_end()) /
SmallSize <
(float)std::distance(mri_->use_begin(LargeReg),mri_->use_end()) /
LargeSize)
--
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.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs