llvm-6502/lib
Chris Lattner 82fec4e31d Fix a nasty bug that caused us to unroll EXTREMELY large loops due to overflow
in the size calculation.

This is not something you want to see:
Loop Unroll: F[main] Loop %no_exit Loop Size = 2 Trip Count = 2147483648 - UNROLLING!

The problem was that 2*2147483648 == 0.

Now we get:
Loop Unroll: F[main] Loop %no_exit Loop Size = 2 Trip Count = 2147483648 - TOO LARGE: 4294967296>100

Thanks to some anonymous person playing with the demo page that repeatedly
caused zion to go into swapping land.  That's one way to ensure you'll get
a quick bugfix.  :)

Testcase here: Transforms/LoopUnroll/2004-05-13-DontUnrollTooMuch.ll


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@13564 91177308-0d34-0410-b5e6-96231b3b80d8
2004-05-13 20:43:31 +00:00
..
Analysis Fine grainify namespacification 2004-05-09 06:22:29 +00:00
Archive Use the true, decoded name of the archive member in getObjectType. 2004-03-31 19:51:00 +00:00
AsmParser Fix a memory leak. We leaked the vector holding the entries in switch tables. 2004-04-17 23:49:15 +00:00
Bytecode Squelch compile-time warning (profile build). 2004-04-28 15:32:09 +00:00
CodeGen Fix a really nasty bug from my changes on Monday to PHIElim. These changes 2004-05-12 21:47:57 +00:00
Debugger "fix" a nasty race condition 2004-01-14 21:18:03 +00:00
ExecutionEngine Generalize the strlen size_t hack, for the benefit of the other external 2004-05-01 06:42:15 +00:00
Linker Don't use invalid HTML in a doxygen comment. 2004-04-15 15:23:45 +00:00
Support Implement the new cl::PositionalEatsArgs flag, refactor code a bit 2004-05-06 22:04:31 +00:00
Target Two more improvements for null pointer handling: storing a null pointer 2004-05-13 15:26:48 +00:00
Transforms Fix a nasty bug that caused us to unroll EXTREMELY large loops due to overflow 2004-05-13 20:43:31 +00:00
VMCore Implement the AddPrototypes method 2004-05-09 04:29:57 +00:00
Makefile CBackend is no longer here 2004-02-13 23:29:37 +00:00