Reid Spencer
1500515406
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
2007-02-15 21:01:58 +00:00
Reid Spencer
f1f007d2ff
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
2007-02-15 20:49:10 +00:00
Reid Spencer
9d1597b086
Make sure Capacity gets initialized too.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34325 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-15 20:14:06 +00:00
Chris Lattner
0878c31059
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
2007-02-15 20:01:43 +00:00
Chris Lattner
1f87a58ab2
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
2007-02-15 19:41:52 +00:00
Evan Cheng
852b4baf47
Missing a ;
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34322 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-15 19:29:05 +00:00
Chris Lattner
d263114d7a
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
2007-02-15 19:26:16 +00:00
Evan Cheng
e01ad2d129
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
2007-02-15 19:21:44 +00:00
Evan Cheng
1f46998b3f
Remove unnecessary checks.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34319 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-15 19:18:12 +00:00
Chris Lattner
3b515802f6
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
2007-02-15 19:17:16 +00:00
Evan Cheng
638417f788
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
2007-02-15 19:16:21 +00:00
Evan Cheng
c761df18ae
Merges two resize() variants.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34316 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-15 19:12:39 +00:00
Evan Cheng
ccae61c5da
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
2007-02-15 19:10:34 +00:00
Evan Cheng
7bf26c1d68
BitVector::count() bugs.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34314 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-15 19:09:36 +00:00
Evan Cheng
334df9d83f
Eliminate a redundent ctor; eliminate one more potential new [0].
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34313 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-15 19:05:25 +00:00
Evan Cheng
057f8e0845
1 -> 1L since BitWord has type unsigned long.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34312 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-15 19:03:23 +00:00
Evan Cheng
5f92ce4696
Eliminate new[0], just set Bits to NULL.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34311 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-15 18:59:15 +00:00
Chris Lattner
924b1ca9ee
Add a new Value::getNameStr method, which is preferred over getName.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34310 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-15 18:53:54 +00:00
Evan Cheng
c48aafe6c6
Inverted the condition by accident.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34309 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-15 18:48:41 +00:00
Reid Spencer
16db3caba8
For PR1202:
...
Make sure we found an existing Alignment before overwriting it.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34308 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-15 18:34:36 +00:00
Chris Lattner
5d4a9f7731
fix indentation
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34307 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-15 18:19:15 +00:00
Chris Lattner
0152829e89
Apply B Scott Michel's patch for PR1184, which improves diagnostics in an
...
abort case.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34306 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-15 18:17:56 +00:00
Evan Cheng
506e899490
Bug fixes: assignment operator forgot to copy over size; copy ctor forgot to clear unused top bits.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34305 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-15 08:15:58 +00:00
Zhou Sheng
b04973edfa
Fix some buges:
...
1. Make getMinValue() returns the right value.
2. Fix the ByteSwap() crash problem.
3. Make Postfix increment work correctly.
4. Fix some bugs in LogBase2, Hi/LoBits and UDiv.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34304 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-15 06:36:31 +00:00
Evan Cheng
61de82d885
Use BitVector instead of vector<bool> which can be extremely slow.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34302 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-15 05:59:24 +00:00
Evan Cheng
ad1d5c3bc5
Add a BitVector class.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34301 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-15 05:56:11 +00:00
Reid Spencer
ac9dcb94dd
For PR1195:
...
Change use of "packed" term to "vector" in comments, strings, variable
names, etc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34300 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-15 03:39:18 +00:00
Reid Spencer
a85210ac66
For PR1195:
...
Change a comment: Packed Type -> Vector Type
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34299 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-15 03:11:50 +00:00
Reid Spencer
d29b8b85ce
Change an assert that mentions Packed Type -> Vector Type.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34298 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-15 03:11:20 +00:00
Reid Spencer
d6aeb4f4ae
For PR1195:
...
Packed -> Vector.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34297 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-15 03:08:48 +00:00
Reid Spencer
485bad1a09
For PR1195:
...
Packed -> Vector
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34296 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-15 03:07:05 +00:00
Evan Cheng
3cd4c892d9
isPhysRegUsed should be const.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34295 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-15 02:55:51 +00:00
Evan Cheng
d1172cc056
Should pass isKill and isDead to addRegOperand() as well.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34294 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-15 02:52:40 +00:00
Reid Spencer
9d6565a5b1
For PR1195:
...
Rename PackedType -> VectorType, ConstantPacked -> ConstantVector, and
PackedTyID -> VectorTyID. No functional changes.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34293 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-15 02:26:10 +00:00
Reid Spencer
b7d61101b1
Fixed packed structure breakage from earlier TargetData patch; applied
...
Chris Lattner's code style suggestions.
Patch by Scott Michel!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34292 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-15 02:11:06 +00:00
Reid Spencer
480cbb9387
Fix validation errors.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34291 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-15 01:11:54 +00:00
Chris Lattner
9814bc6243
update to new t-d strings.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34290 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-15 00:54:16 +00:00
Reid Spencer
853418d158
Fix a typo.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34289 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-14 22:58:39 +00:00
Reid Spencer
5b9a6094ad
Add feedback from Vikram Adve.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34288 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-14 22:55:40 +00:00
Reid Spencer
e7bd7d686b
Synchronize TOC headings with actual headings.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34285 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-14 17:24:04 +00:00
Reid Spencer
0e59872d22
Fix the table of contents to match the document body.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34284 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-14 17:20:59 +00:00
Reid Spencer
134400bdec
Fix a grammaro.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34283 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-14 16:21:54 +00:00
Reid Spencer
01f56be4cf
A few changes:
...
1. Fix typos
2. Move Terminology to the end
3. Simplify language in a few spots.
4. Add a policy that larger increments require a larger testing effort.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34282 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-14 16:21:10 +00:00
Reid Spencer
8a9bd92984
Drop a policy.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34281 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-14 08:23:08 +00:00
Reid Spencer
f1491da96b
Some more minor tweaks.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34280 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-14 08:19:16 +00:00
Reid Spencer
c767f00187
Fix word usage.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34279 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-14 08:13:38 +00:00
Reid Spencer
25f9b9b61f
Add a missing .
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34278 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-14 08:09:40 +00:00
Reid Spencer
3eedbd31e8
Incorporate Chris Lattner's second round of feedback.
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34277 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-14 07:57:48 +00:00
Chris Lattner
27a047280a
fix validation bug
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34276 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-14 07:42:59 +00:00
Chris Lattner
ad85ba4c5b
now that llvm-gcc3 is gone, life is significantly simpler and less scary
...
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@34275 91177308-0d34-0410-b5e6-96231b3b80d8
2007-02-14 07:42:12 +00:00