oota-llvm.git
17 years agollvm-gcc issue fixed, revert reversal :)
Chris Lattner [Mon, 19 Feb 2007 20:01:23 +0000 (20:01 +0000)]
llvm-gcc issue fixed, revert reversal :)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34425 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoremove warning
Chris Lattner [Mon, 19 Feb 2007 19:46:17 +0000 (19:46 +0000)]
remove warning

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34424 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoTemporarily reverting the patch. It's breaking llvm-gcc build.
Evan Cheng [Mon, 19 Feb 2007 19:23:41 +0000 (19:23 +0000)]
Temporarily reverting the patch. It's breaking llvm-gcc build.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34423 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoAdd a FIXME for unwritten code.
Reid Spencer [Mon, 19 Feb 2007 19:00:29 +0000 (19:00 +0000)]
Add a FIXME for unwritten code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34422 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoCorrected typo.
Bill Wendling [Mon, 19 Feb 2007 18:32:40 +0000 (18:32 +0000)]
Corrected typo.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34421 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoSome minor tweaks and grammar cleanup.
Reid Spencer [Mon, 19 Feb 2007 17:38:38 +0000 (17:38 +0000)]
Some minor tweaks and grammar cleanup.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34420 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoremove dead methods
Chris Lattner [Mon, 19 Feb 2007 07:44:24 +0000 (07:44 +0000)]
remove dead methods

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34419 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoremove use of deprecated apis
Chris Lattner [Mon, 19 Feb 2007 07:41:31 +0000 (07:41 +0000)]
remove use of deprecated apis

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34418 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoeliminate use of deprecated apis
Chris Lattner [Mon, 19 Feb 2007 07:34:47 +0000 (07:34 +0000)]
eliminate use of deprecated apis

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34417 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoremove use of deprecated api
Chris Lattner [Mon, 19 Feb 2007 07:34:02 +0000 (07:34 +0000)]
remove use of deprecated api

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34416 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoadd alternate version of constant ctors that don't take a vector. For now
Chris Lattner [Mon, 19 Feb 2007 07:23:24 +0000 (07:23 +0000)]
add alternate version of constant ctors that don't take a vector.  For now
this offers no performance advantage.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34415 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agofix validation
Chris Lattner [Mon, 19 Feb 2007 06:57:46 +0000 (06:57 +0000)]
fix validation

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34414 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agomore wording changes and some minor additions
Chris Lattner [Mon, 19 Feb 2007 06:57:16 +0000 (06:57 +0000)]
more wording changes and some minor additions

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34413 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoadd the definite article
Chris Lattner [Mon, 19 Feb 2007 06:24:23 +0000 (06:24 +0000)]
add the definite article

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34412 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agorename section to Copyright, License, and Patents
Chris Lattner [Mon, 19 Feb 2007 06:19:16 +0000 (06:19 +0000)]
rename section to Copyright, License, and Patents

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34411 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agowording changes
Chris Lattner [Mon, 19 Feb 2007 06:15:33 +0000 (06:15 +0000)]
wording changes

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34410 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoadd strong words about patents
Chris Lattner [Mon, 19 Feb 2007 06:13:50 +0000 (06:13 +0000)]
add strong words about patents

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34409 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoincremental changes to own section, protosection on patents
Chris Lattner [Mon, 19 Feb 2007 06:05:58 +0000 (06:05 +0000)]
incremental changes to own section, protosection on patents

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34408 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agofix TOC, clarify bullet in incremental dev
Chris Lattner [Mon, 19 Feb 2007 05:59:30 +0000 (05:59 +0000)]
fix TOC, clarify bullet in incremental dev

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34407 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agorefactor the top-level 'patches' section into a subsection of General Policies.
Chris Lattner [Mon, 19 Feb 2007 05:57:29 +0000 (05:57 +0000)]
refactor the top-level 'patches' section into a subsection of General Policies.
Much of its content is now in other parts of the doc, and this brings it up
immediately after 'stay informed' and right before 'code reviews'.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34406 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agominor changes
Chris Lattner [Mon, 19 Feb 2007 05:49:11 +0000 (05:49 +0000)]
minor changes

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34405 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoremove terminology section (this is not a legal document)
Chris Lattner [Mon, 19 Feb 2007 05:47:13 +0000 (05:47 +0000)]
remove terminology section (this is not a legal document)
move testcases above quality.  Mention that a testcase is part of quality.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34404 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoTransmogrify 'Starting New Work' into 'Making a Major Change', add
Chris Lattner [Mon, 19 Feb 2007 05:43:04 +0000 (05:43 +0000)]
Transmogrify 'Starting New Work' into 'Making a Major Change', add
incremental development as a subsection of it.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34403 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoA bunch of editting. I'm still not done with the 'patches' section.
Chris Lattner [Mon, 19 Feb 2007 03:50:31 +0000 (03:50 +0000)]
A bunch of editting.  I'm still not done with the 'patches' section.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34401 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoclarify the 'developed by' line
Chris Lattner [Mon, 19 Feb 2007 03:33:06 +0000 (03:33 +0000)]
clarify the 'developed by' line

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34400 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1207:
Reid Spencer [Mon, 19 Feb 2007 03:20:00 +0000 (03:20 +0000)]
For PR1207:
Revert patches that caused the problem. Evan, please investigate and reapply
when you've discovered the problem.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34399 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoAdd some new constants.
Reid Spencer [Mon, 19 Feb 2007 03:18:22 +0000 (03:18 +0000)]
Add some new constants.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34398 91177308-0d34-0410-b5e6-96231b3b80d8

17 years ago1. Fix some indentation and variable names in the get{Min,Max}Value methods.
Reid Spencer [Sun, 18 Feb 2007 22:29:05 +0000 (22:29 +0000)]
1. Fix some indentation and variable names in the get{Min,Max}Value methods.
2. Implement toString for power-of-2 radix without using divide and always
   printing full words. This allows hex/binary to look at the bit
   respresentation of the APInt as well as avoid bugs in divide.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34396 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agofix comment
Chris Lattner [Sun, 18 Feb 2007 22:10:58 +0000 (22:10 +0000)]
fix comment

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34395 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agosimplify pass, delete dead gvar protos as well.
Chris Lattner [Sun, 18 Feb 2007 22:10:34 +0000 (22:10 +0000)]
simplify pass, delete dead gvar protos as well.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34394 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRemove broken links to gccas and gccld.
Reid Spencer [Sun, 18 Feb 2007 20:37:44 +0000 (20:37 +0000)]
Remove broken links to gccas and gccld.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34393 91177308-0d34-0410-b5e6-96231b3b80d8

17 years ago1. Use APINT_WORD_SIZE instead of sizeof(uint64_t)
Reid Spencer [Sun, 18 Feb 2007 20:09:41 +0000 (20:09 +0000)]
1. Use APINT_WORD_SIZE instead of sizeof(uint64_t)
2. Teach slt about signedness.
3. Teach roundToDouble to properly sign extend.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34391 91177308-0d34-0410-b5e6-96231b3b80d8

17 years ago1. "unsigned" -> "uint32_t" to gaurantee its bit width on all platforms.
Reid Spencer [Sun, 18 Feb 2007 18:42:35 +0000 (18:42 +0000)]
1. "unsigned" -> "uint32_t" to gaurantee its bit width on all platforms.
   Size matters in this case.
2. Remove the unused whichByte private function, which was also broken.
3. Remove the non-const overload of the getWord function, getWord() is
   never used as an lvalue.
4. Rename some local variables for clarity (e.g. API -> Result).

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34390 91177308-0d34-0410-b5e6-96231b3b80d8

17 years ago1. Remove dead code (lshift function).
Reid Spencer [Sun, 18 Feb 2007 18:38:44 +0000 (18:38 +0000)]
1. Remove dead code (lshift function).
2. Consolidate memory allocation into just two inline functions.
3. Convert "unsigned" to uint32_t to gaurantee its size.
4. Eliminate magic constants and replace with symbolic equivalent.
5. Improve code documentation slightly.
6. Simplify the logical operator code because bitwidths must be the same.
7. Fix indentation per coding standards.
8. Use exit-early style to reduce indentation in several functions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34389 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoMake add_1 exit early if carry is 0.
Reid Spencer [Sun, 18 Feb 2007 06:39:42 +0000 (06:39 +0000)]
Make add_1 exit early if carry is 0.
Fix line breaks and 80 cols violation.
Simplify operator^= since bitwidths must be the same.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34388 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoavoid collision with /usr/bin/sample if this ever gets installed.
Chris Lattner [Sun, 18 Feb 2007 03:03:41 +0000 (03:03 +0000)]
avoid collision with /usr/bin/sample if this ever gets installed.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34387 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoImplement signed output for toString.
Reid Spencer [Sun, 18 Feb 2007 00:44:22 +0000 (00:44 +0000)]
Implement signed output for toString.
Fix bugs in countLeadingZeros and countTrailingZeros.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34386 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agotemporarily revert Devang's most recent patch, which caused a large
Chris Lattner [Sat, 17 Feb 2007 23:14:24 +0000 (23:14 +0000)]
temporarily revert Devang's most recent patch, which caused a large
compile-time regression in LLC.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34385 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix some bugs in division logic.
Reid Spencer [Sat, 17 Feb 2007 22:38:07 +0000 (22:38 +0000)]
Fix some bugs in division logic.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34384 91177308-0d34-0410-b5e6-96231b3b80d8

17 years ago- Changes how function livein's are handled, they now have a start index of 0.
Evan Cheng [Sat, 17 Feb 2007 11:15:40 +0000 (11:15 +0000)]
- Changes how function livein's are handled, they now have a start index of 0.
- When coalescing a copy MI, if its destination is "dead", propagate the
  property to the source MI's destination if there are no intervening uses.
- Detect dead function live-in's and remove them.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34383 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoDo not add livein's to entry MBB twice.
Evan Cheng [Sat, 17 Feb 2007 11:11:27 +0000 (11:11 +0000)]
Do not add livein's to entry MBB twice.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34382 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoAdded removeLiveIn.
Evan Cheng [Sat, 17 Feb 2007 11:10:48 +0000 (11:10 +0000)]
Added removeLiveIn.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34381 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoAdded findRegisterDefOperand().
Evan Cheng [Sat, 17 Feb 2007 11:10:18 +0000 (11:10 +0000)]
Added findRegisterDefOperand().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34380 91177308-0d34-0410-b5e6-96231b3b80d8

17 years ago- Use MRegister::regsOverlap().
Evan Cheng [Sat, 17 Feb 2007 11:09:47 +0000 (11:09 +0000)]
- Use MRegister::regsOverlap().
- Allow LiveVariables to track liveness of more registers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34379 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoAdded removeLiveIn and more livein iterators.
Evan Cheng [Sat, 17 Feb 2007 11:07:41 +0000 (11:07 +0000)]
Added removeLiveIn and more livein iterators.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34378 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoAllow LiveVariables to track liveness of more registers.
Evan Cheng [Sat, 17 Feb 2007 11:07:08 +0000 (11:07 +0000)]
Allow LiveVariables to track liveness of more registers.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34377 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoAdded getReservedRegs().
Evan Cheng [Sat, 17 Feb 2007 11:06:00 +0000 (11:06 +0000)]
Added getReservedRegs().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34376 91177308-0d34-0410-b5e6-96231b3b80d8

17 years ago- Added regsOverlap() to test if two registers overlap. Or in case they are
Evan Cheng [Sat, 17 Feb 2007 11:04:35 +0000 (11:04 +0000)]
- Added regsOverlap() to test if two registers overlap. Or in case they are
  virtual registers, test if they the same.
- Added a virtual method to return target specific reserved registers, e.g. SP.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34375 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix ixaddrs as well, allowing ppc64 to compile to:
Chris Lattner [Sat, 17 Feb 2007 06:57:26 +0000 (06:57 +0000)]
Fix ixaddrs as well, allowing ppc64 to compile to:

_test2:
        li r2, 0
        lis r3, 1
        std r2, 9024(r3)
        blr

instead of:

_test2:
        lis r2, 1
        li r3, 0
        ori r2, r2, 9024
        std r3, 0(r2)
        blr

This implements CodeGen/PowerPC/LargeAbsoluteAddr.ll:test2

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34373 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agonew test
Chris Lattner [Sat, 17 Feb 2007 06:57:11 +0000 (06:57 +0000)]
new test

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34372 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoCompile test/CodeGen/PowerPC/LargeAbsoluteAddr.ll to:
Chris Lattner [Sat, 17 Feb 2007 06:44:03 +0000 (06:44 +0000)]
Compile test/CodeGen/PowerPC/LargeAbsoluteAddr.ll to:

_test:
        lis r2, 743
        li r3, 0
        stw r3, 32751(r2)
        blr

instead of:

_test:
        li r2, 0
        stw r2, 32751(48693248)
        blr

Implement support for ppc64 as well, allowing it to produce better code.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34371 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoTest that large absolute addresses are properly folded into addr modes on
Chris Lattner [Sat, 17 Feb 2007 06:41:57 +0000 (06:41 +0000)]
Test that large absolute addresses are properly folded into addr modes on
both ppc32 and ppc64.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34370 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoprint target nodes nicely
Chris Lattner [Sat, 17 Feb 2007 06:38:37 +0000 (06:38 +0000)]
print target nodes nicely

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34369 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoImplement i/n/s constraints correctly. This fixes
Chris Lattner [Sat, 17 Feb 2007 06:00:35 +0000 (06:00 +0000)]
Implement i/n/s constraints correctly.  This fixes
test/CodeGen/PowerPC/2007-02-16-InlineAsmNConstraint.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34368 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agonew testcase that crashes llc
Chris Lattner [Sat, 17 Feb 2007 05:59:01 +0000 (05:59 +0000)]
new testcase that crashes llc

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34367 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agotestcase for PR1170
Chris Lattner [Sat, 17 Feb 2007 05:44:57 +0000 (05:44 +0000)]
testcase for PR1170

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34366 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agonew testcase for -fwritable-strings
Chris Lattner [Sat, 17 Feb 2007 05:07:40 +0000 (05:07 +0000)]
new testcase for -fwritable-strings

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34365 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoUse inverted map to speedup collectLastUses().
Devang Patel [Sat, 17 Feb 2007 03:53:44 +0000 (03:53 +0000)]
Use inverted map to speedup collectLastUses().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34364 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoMove static functions closer to their usage.
Reid Spencer [Sat, 17 Feb 2007 03:16:00 +0000 (03:16 +0000)]
Move static functions closer to their usage.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34363 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoClean up the divide and remainder logic a bit (exit early). Use more
Reid Spencer [Sat, 17 Feb 2007 02:07:07 +0000 (02:07 +0000)]
Clean up the divide and remainder logic a bit (exit early).  Use more
meaningful variable names. Add comments to document the flow.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34362 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agonew testcase
Chris Lattner [Sat, 17 Feb 2007 01:44:21 +0000 (01:44 +0000)]
new testcase

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34361 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoadding PR 1200 comment by request
Dale Johannesen [Sat, 17 Feb 2007 01:12:15 +0000 (01:12 +0000)]
adding PR 1200 comment by request

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34360 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFixes PR 1200
Dale Johannesen [Sat, 17 Feb 2007 00:44:34 +0000 (00:44 +0000)]
Fixes PR 1200

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34359 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoDo not dereference invalid ranges. Generalize targetdata alignment model.
Chris Lattner [Sat, 17 Feb 2007 00:41:42 +0000 (00:41 +0000)]
Do not dereference invalid ranges.  Generalize targetdata alignment model.
This fixes the UnitTests/Vector/sumarray-dbl regressions.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34358 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix bugs introduced by constructor parameter order change.
Reid Spencer [Sat, 17 Feb 2007 00:18:01 +0000 (00:18 +0000)]
Fix bugs introduced by constructor parameter order change.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34357 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix CodeGen/PowerPC/2007-02-16-AlignPacked.ll
Chris Lattner [Fri, 16 Feb 2007 23:11:51 +0000 (23:11 +0000)]
Fix CodeGen/PowerPC/2007-02-16-AlignPacked.ll

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34356 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agotestcase for recent targetdata regression
Chris Lattner [Fri, 16 Feb 2007 23:11:43 +0000 (23:11 +0000)]
testcase for recent targetdata regression

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34355 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRemove an unnecessary predicate.
Reid Spencer [Fri, 16 Feb 2007 22:42:40 +0000 (22:42 +0000)]
Remove an unnecessary predicate.
Patch by Scott Michel.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34354 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoReview changes:
Reid Spencer [Fri, 16 Feb 2007 22:36:51 +0000 (22:36 +0000)]
Review changes:
1. Function style changes.
2. 80-col violations.
3. Better names for things.
4. Arrange constructors so they all take bit width first.
5. Add named signed and unsigned comparison functions and remove the
   corresponding operators.
6. Remove operator&& and operator|| but provide a getBoolValue function which
   converts to bool as comparison against 0. This allows the normal && and
   || operators to be used as if (X.getBoolValue() && Y.getBoolValue())

Note: this still doesn't function 100% yet. I'm working on the bugs now.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34353 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agosimplify some code, ensure that packed structures get abi alignment of 1.
Chris Lattner [Fri, 16 Feb 2007 22:25:34 +0000 (22:25 +0000)]
simplify some code, ensure that packed structures get abi alignment of 1.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34352 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agofix incorrect encoding of vminsw.
Chris Lattner [Fri, 16 Feb 2007 21:20:09 +0000 (21:20 +0000)]
fix incorrect encoding of vminsw.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34351 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRegenerate for getrlimit/setrlimit.
Reid Spencer [Fri, 16 Feb 2007 19:17:20 +0000 (19:17 +0000)]
Regenerate for getrlimit/setrlimit.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34350 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoAdd possibility to set memory limit for binaries run via libSystem. This
Anton Korobeynikov [Fri, 16 Feb 2007 19:11:07 +0000 (19:11 +0000)]
Add possibility to set memory limit for binaries run via libSystem. This
is especially needed for bugpoint. This partly implements PR688

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34349 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoPrint <dead> def operands.
Evan Cheng [Fri, 16 Feb 2007 09:49:18 +0000 (09:49 +0000)]
Print <dead> def operands.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34343 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoAdd live-ins to every BB.
Evan Cheng [Fri, 16 Feb 2007 09:05:02 +0000 (09:05 +0000)]
Add live-ins to every BB.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34342 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoAdd missing break statements!
Reid Spencer [Fri, 16 Feb 2007 06:34:39 +0000 (06:34 +0000)]
Add missing break statements!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34341 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoupdate symtab section to reflect recent changes.
Chris Lattner [Fri, 16 Feb 2007 04:37:31 +0000 (04:37 +0000)]
update symtab section to reflect recent changes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34340 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agofix build
Andrew Lenharth [Fri, 16 Feb 2007 02:25:55 +0000 (02:25 +0000)]
fix build

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34339 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoThis was done recently
Andrew Lenharth [Fri, 16 Feb 2007 02:11:59 +0000 (02:11 +0000)]
This was done recently

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34338 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agotest commit (blank line)
Dale Johannesen [Fri, 16 Feb 2007 01:54:53 +0000 (01:54 +0000)]
test commit (blank line)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34337 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agomake mayWriteToMemory a non-virtual function
Chris Lattner [Thu, 15 Feb 2007 23:15:00 +0000 (23:15 +0000)]
make mayWriteToMemory a non-virtual function

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34334 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoconvert more vectors to smallvectors, 2.8% speedup
Chris Lattner [Thu, 15 Feb 2007 22:52:10 +0000 (22:52 +0000)]
convert more vectors to smallvectors, 2.8% speedup

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34333 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agochange some vectors to smallvectors. This speeds up instcombine on 447.dealII
Chris Lattner [Thu, 15 Feb 2007 22:48:32 +0000 (22:48 +0000)]
change some vectors to smallvectors.  This speeds up instcombine on 447.dealII
by 5%.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34332 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoUpdate
Evan Cheng [Thu, 15 Feb 2007 22:26:28 +0000 (22:26 +0000)]
Update

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34331 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFor PR1195:
Reid Spencer [Thu, 15 Feb 2007 22:07:05 +0000 (22:07 +0000)]
For PR1195:
PACKED_ALIGN -> VECTOR_ALIGN

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34330 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoAdd myself to the credits.
Dan Gohman [Thu, 15 Feb 2007 22:05:14 +0000 (22:05 +0000)]
Add myself to the credits.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34329 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoProper fix for the off-by-one bug in clear_unused_bits().
Evan Cheng [Thu, 15 Feb 2007 21:38:15 +0000 (21:38 +0000)]
Proper fix for the off-by-one bug in clear_unused_bits().

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34328 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoUpdate this test to compile properly and check against the correct
Reid Spencer [Thu, 15 Feb 2007 21:01:58 +0000 (21:01 +0000)]
Update this test to compile properly and check against the correct
string generated by the CBE. This is no longer an XFAIL.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34327 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoFix an off-by-one bug in computing the index of the word to clear.
Reid Spencer [Thu, 15 Feb 2007 20:49:10 +0000 (20:49 +0000)]
Fix an off-by-one bug in computing the index of the word to clear.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34326 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoMake sure Capacity gets initialized too.
Reid Spencer [Thu, 15 Feb 2007 20:14:06 +0000 (20:14 +0000)]
Make sure Capacity gets initialized too.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34325 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agorewrite Value::takeName to take advantage of the new symtab stuff. This
Chris Lattner [Thu, 15 Feb 2007 20:01:43 +0000 (20:01 +0000)]
rewrite Value::takeName to take advantage of the new symtab stuff.  This
causes it to require no allocations and no symtab lookups in the common
case.  This speeds up instcombine 9.2% on 447.dealII.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34324 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoswitch an std::set to a SmallPtr set, this speeds up instcombine by 9.5%
Chris Lattner [Thu, 15 Feb 2007 19:41:52 +0000 (19:41 +0000)]
switch an std::set to a SmallPtr set, this speeds up instcombine by 9.5%
on 447.dealII

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34323 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoMissing a ;
Evan Cheng [Thu, 15 Feb 2007 19:29:05 +0000 (19:29 +0000)]
Missing a ;

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34322 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agothe lengths of the strings are known, just use memcmp
Chris Lattner [Thu, 15 Feb 2007 19:26:16 +0000 (19:26 +0000)]
the lengths of the strings are known, just use memcmp

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34321 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoBitVector::reference operator=(const reference& rhs) is unnecessary thanks to autocon...
Evan Cheng [Thu, 15 Feb 2007 19:21:44 +0000 (19:21 +0000)]
BitVector::reference operator=(const reference& rhs) is unnecessary thanks to autoconvert to bool.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34320 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoRemove unnecessary checks.
Evan Cheng [Thu, 15 Feb 2007 19:18:12 +0000 (19:18 +0000)]
Remove unnecessary checks.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34319 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoImplement Function::getIntrinsicID without it needing to call Value::getName,
Chris Lattner [Thu, 15 Feb 2007 19:17:16 +0000 (19:17 +0000)]
Implement Function::getIntrinsicID without it needing to call Value::getName,
which allocates a string.  This speeds up instcombine on 447.dealII by 5%.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34318 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agooperator== returns false when two bitvectors have different sizes.
Evan Cheng [Thu, 15 Feb 2007 19:16:21 +0000 (19:16 +0000)]
operator== returns false when two bitvectors have different sizes.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34317 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoMerges two resize() variants.
Evan Cheng [Thu, 15 Feb 2007 19:12:39 +0000 (19:12 +0000)]
Merges two resize() variants.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34316 91177308-0d34-0410-b5e6-96231b3b80d8

17 years agoClear no longer deleting the bits to avoid mallocs.
Evan Cheng [Thu, 15 Feb 2007 19:10:34 +0000 (19:10 +0000)]
Clear no longer deleting the bits to avoid mallocs.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34315 91177308-0d34-0410-b5e6-96231b3b80d8