oota-llvm.git
14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:26:39 +0000 (01:26 +0000)]
Change errs() to dbgs().

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

14 years agoAdd an svn:ignore.
Dan Gohman [Tue, 5 Jan 2010 01:26:36 +0000 (01:26 +0000)]
Add an svn:ignore.

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:26:11 +0000 (01:26 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:26:09 +0000 (01:26 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:26:05 +0000 (01:26 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:26:01 +0000 (01:26 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:26:00 +0000 (01:26 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:25:58 +0000 (01:25 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:25:55 +0000 (01:25 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:25:52 +0000 (01:25 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:25:50 +0000 (01:25 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:25:47 +0000 (01:25 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:25:45 +0000 (01:25 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:25:43 +0000 (01:25 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:25:41 +0000 (01:25 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:25:39 +0000 (01:25 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:25:20 +0000 (01:25 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:25:15 +0000 (01:25 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:25:11 +0000 (01:25 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:25:09 +0000 (01:25 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:25:04 +0000 (01:25 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:25:00 +0000 (01:25 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:24:57 +0000 (01:24 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:24:54 +0000 (01:24 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:24:53 +0000 (01:24 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:24:50 +0000 (01:24 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:24:48 +0000 (01:24 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:24:45 +0000 (01:24 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:24:43 +0000 (01:24 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:24:40 +0000 (01:24 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:24:36 +0000 (01:24 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:24:34 +0000 (01:24 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:24:28 +0000 (01:24 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:24:24 +0000 (01:24 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:24:21 +0000 (01:24 +0000)]
Change errs() to dbgs().

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

14 years agoChange SelectCode's argument from SDValue to SDNode *, to make it more
Dan Gohman [Tue, 5 Jan 2010 01:24:18 +0000 (01:24 +0000)]
Change SelectCode's argument from SDValue to SDNode *, to make it more
clear what information these functions are actually using.

This is also a micro-optimization, as passing a SDNode * around is
simpler than passing a { SDNode *, int } by value or reference.

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:24:08 +0000 (01:24 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:23:38 +0000 (01:23 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:23:36 +0000 (01:23 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 01:23:34 +0000 (01:23 +0000)]
Change errs() to dbgs().

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

14 years agoRemove dead debug info intrinsics.
Devang Patel [Tue, 5 Jan 2010 01:10:40 +0000 (01:10 +0000)]
Remove dead debug info intrinsics.
 Intrinsic::dbg_stoppoint
 Intrinsic::dbg_region_start
 Intrinsic::dbg_region_end
 Intrinsic::dbg_func_start
AutoUpgrade simply ignores these intrinsics now.

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

14 years agoRemove the SDNPAssociative properties for the flags-producing
Dan Gohman [Tue, 5 Jan 2010 00:44:20 +0000 (00:44 +0000)]
Remove the SDNPAssociative properties for the flags-producing
operators. Eli pointed out that it's not obvious what that
would mean.

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

14 years agoSimplify this code; avoid duplicating the low-level implementation code.
Dan Gohman [Tue, 5 Jan 2010 00:42:54 +0000 (00:42 +0000)]
Simplify this code; avoid duplicating the low-level implementation code.

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

14 years agoFix a typo in a comment.
Dan Gohman [Tue, 5 Jan 2010 00:30:22 +0000 (00:30 +0000)]
Fix a typo in a comment.

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

14 years agoFix some struct/class specifier mismatches.
Daniel Dunbar [Tue, 5 Jan 2010 00:15:58 +0000 (00:15 +0000)]
Fix some struct/class specifier mismatches.

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 00:10:05 +0000 (00:10 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Tue, 5 Jan 2010 00:03:48 +0000 (00:03 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Mon, 4 Jan 2010 23:48:20 +0000 (23:48 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Mon, 4 Jan 2010 23:39:17 +0000 (23:39 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Mon, 4 Jan 2010 23:22:07 +0000 (23:22 +0000)]
Change errs() to dbgs().

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

14 years agoUpdate CMake LibDeps
Daniel Dunbar [Mon, 4 Jan 2010 23:17:24 +0000 (23:17 +0000)]
Update CMake LibDeps

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

14 years agoChange errs() to dbgs().
David Greene [Mon, 4 Jan 2010 23:14:46 +0000 (23:14 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Mon, 4 Jan 2010 23:06:47 +0000 (23:06 +0000)]
Change errs() to dbgs().

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

14 years agoFix debug_inlined section entries for routines whose names are changed through __asm...
Devang Patel [Mon, 4 Jan 2010 23:04:36 +0000 (23:04 +0000)]
Fix debug_inlined section entries for routines whose names are changed through __asm() extension.

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

14 years agoChange errs() to dbgs().
David Greene [Mon, 4 Jan 2010 23:02:10 +0000 (23:02 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Mon, 4 Jan 2010 22:49:02 +0000 (22:49 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Mon, 4 Jan 2010 22:41:43 +0000 (22:41 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Mon, 4 Jan 2010 22:33:16 +0000 (22:33 +0000)]
Change errs() to dbgs().

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

14 years agotblgen/OptParser: Use EmitSourceFileHeader.
Daniel Dunbar [Mon, 4 Jan 2010 22:03:51 +0000 (22:03 +0000)]
tblgen/OptParser: Use EmitSourceFileHeader.

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

14 years agoChange errs() to dbgs().
David Greene [Mon, 4 Jan 2010 22:02:01 +0000 (22:02 +0000)]
Change errs() to dbgs().

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

14 years agoFix CMake build for InstCombine changes
Douglas Gregor [Mon, 4 Jan 2010 21:58:55 +0000 (21:58 +0000)]
Fix CMake build for InstCombine changes

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

14 years agoChange errs() to dbgs().
David Greene [Mon, 4 Jan 2010 21:48:34 +0000 (21:48 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Mon, 4 Jan 2010 21:35:15 +0000 (21:35 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Mon, 4 Jan 2010 21:26:07 +0000 (21:26 +0000)]
Change errs() to dbgs().

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

14 years agoMake this test more portable.
Dan Gohman [Mon, 4 Jan 2010 21:23:34 +0000 (21:23 +0000)]
Make this test more portable.

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

14 years agoPerform this folding as a target specific dag combine:
Evan Cheng [Mon, 4 Jan 2010 21:22:48 +0000 (21:22 +0000)]
Perform this folding as a target specific dag combine:
(or (x << c) | (y >> (64 - c))) ==> (shld64 x, y, c)

The isel patterns may not catch all the cases if general dag combine has reduced width of source operands.

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

14 years agoUse a pointer type rather than MVT::Other for the ExternalSymbol node used
Dan Gohman [Mon, 4 Jan 2010 21:00:54 +0000 (21:00 +0000)]
Use a pointer type rather than MVT::Other for the ExternalSymbol node used
in an inline asm.

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

14 years agoRemove some README.txt entries which are now implemented.
Dan Gohman [Mon, 4 Jan 2010 20:55:05 +0000 (20:55 +0000)]
Remove some README.txt entries which are now implemented.

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

14 years agoRemove oversimplified test case.
Devang Patel [Mon, 4 Jan 2010 20:54:06 +0000 (20:54 +0000)]
Remove oversimplified test case.

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

14 years agoAdd some tests and update an existing test to reflect recent
Dan Gohman [Mon, 4 Jan 2010 20:53:54 +0000 (20:53 +0000)]
Add some tests and update an existing test to reflect recent
x86 isel peeps.

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

14 years agoA use by operand 1 or 2 of a SELECT is not a FLAGS use. This
Dan Gohman [Mon, 4 Jan 2010 20:52:50 +0000 (20:52 +0000)]
A use by operand 1 or 2 of a SELECT is not a FLAGS use. This
lets the test-elimination work in more conditional-move cases.

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

14 years agoFlags-producing add, and, or, etc. have the same profibility
Dan Gohman [Mon, 4 Jan 2010 20:51:50 +0000 (20:51 +0000)]
Flags-producing add, and, or, etc. have the same profibility
rules as normal add, and, or, etc.

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

14 years agoAdd SDNPCommutative and SDNPAssociative to several X86 target nodes.
Dan Gohman [Mon, 4 Jan 2010 20:51:05 +0000 (20:51 +0000)]
Add SDNPCommutative and SDNPAssociative to several X86 target nodes.
This lets isel fold loads into them in more cases.

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

14 years agoFix begin and end markers for nested scopes.
Devang Patel [Mon, 4 Jan 2010 20:44:00 +0000 (20:44 +0000)]
Fix begin and end markers for nested scopes.

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

14 years agoReplace some special-case code which probably was buggy with an assertion
Dan Gohman [Mon, 4 Jan 2010 20:36:57 +0000 (20:36 +0000)]
Replace some special-case code which probably was buggy with an assertion
verifying that the special case does not occur.

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

14 years agoRemove the CPAttrParentAsRoot code, which is unused, and inconvenient
Dan Gohman [Mon, 4 Jan 2010 20:31:55 +0000 (20:31 +0000)]
Remove the CPAttrParentAsRoot code, which is unused, and inconvenient
for a refactoring I'm working on.

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

14 years agoChange errs() to dbgs().
David Greene [Mon, 4 Jan 2010 19:57:26 +0000 (19:57 +0000)]
Change errs() to dbgs().

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

14 years agoThe test, derived from optimzed IR, does not mention "bar" in debug info anywhere...
Devang Patel [Mon, 4 Jan 2010 19:41:13 +0000 (19:41 +0000)]
The test, derived from optimzed IR, does not mention "bar" in debug info anywhere so the dwarf writer is not expected to emit any debug info for function "bar".

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

14 years agoChange errs() to dbgs().
David Greene [Mon, 4 Jan 2010 19:36:42 +0000 (19:36 +0000)]
Change errs() to dbgs().

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

14 years agoChange errs() to dbgs().
David Greene [Mon, 4 Jan 2010 19:10:20 +0000 (19:10 +0000)]
Change errs() to dbgs().

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

14 years agoTruncate GEP indexes larger than the pointer size down to pointer size
Chris Lattner [Mon, 4 Jan 2010 18:57:15 +0000 (18:57 +0000)]
Truncate GEP indexes larger than the pointer size down to pointer size
when doing this transform if the GEP is not inbounds.  No testcase because
it is very difficult to trigger this: instcombine already canonicalizes
GEP indices to pointer size, so it relies specific permutations of the
instcombine worklist.

Thanks to Duncan for pointing this possible problem out.

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

14 years agosilence a bogus 'might be used uninit' warning from GCC.
Chris Lattner [Mon, 4 Jan 2010 18:48:26 +0000 (18:48 +0000)]
silence a bogus 'might be used uninit' warning from GCC.

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

14 years agoAdd a comment.
Dan Gohman [Mon, 4 Jan 2010 18:38:39 +0000 (18:38 +0000)]
Add a comment.

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

14 years agoChange errs() to dbgs().
David Greene [Mon, 4 Jan 2010 17:47:05 +0000 (17:47 +0000)]
Change errs() to dbgs().

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

14 years agoFix invalid chain folding for memory variant of sdiv / udiv
Anton Korobeynikov [Mon, 4 Jan 2010 10:31:54 +0000 (10:31 +0000)]
Fix invalid chain folding for memory variant of sdiv / udiv

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

14 years agomove some more cast-related stuff
Chris Lattner [Mon, 4 Jan 2010 07:59:07 +0000 (07:59 +0000)]
move some more cast-related stuff

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

14 years ago80-col violations, trailing whitespace.
Mikhail Glushenkov [Mon, 4 Jan 2010 07:55:25 +0000 (07:55 +0000)]
80-col violations, trailing whitespace.

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

14 years agomove the [Can]EvaluateInDifferentType functions out to InstCombineCasts.cpp
Chris Lattner [Mon, 4 Jan 2010 07:54:59 +0000 (07:54 +0000)]
move the [Can]EvaluateInDifferentType functions out to InstCombineCasts.cpp

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

14 years agosplit 943 lines of instcombine out to a new InstCombineCasts.cpp
Chris Lattner [Mon, 4 Jan 2010 07:53:58 +0000 (07:53 +0000)]
split 943 lines of instcombine out to a new InstCombineCasts.cpp
file.  InstructionCombining.cpp is now down to a svelte 9300 lines :)

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

14 years agosplit instcombine of compares (visit[FI]Cmp) out to
Chris Lattner [Mon, 4 Jan 2010 07:37:31 +0000 (07:37 +0000)]
split instcombine of compares (visit[FI]Cmp) out to
a new InstCombineCompares.cpp file.

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

14 years agoupdate cmakefile
Chris Lattner [Mon, 4 Jan 2010 07:19:55 +0000 (07:19 +0000)]
update cmakefile

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

14 years agomove the 'SimplifyDemandedFoo' methods out to their own file, cutting 1K lines out...
Chris Lattner [Mon, 4 Jan 2010 07:17:19 +0000 (07:17 +0000)]
move the 'SimplifyDemandedFoo' methods out to their own file, cutting 1K lines out of instcombine.cpp

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

14 years agoFix the Emacs mode string.
Mikhail Glushenkov [Mon, 4 Jan 2010 07:16:12 +0000 (07:16 +0000)]
Fix the Emacs mode string.

Also trailing whitespace & 80-col violations.

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

14 years agosplit the instcombine class definition out to a header shared
Chris Lattner [Mon, 4 Jan 2010 07:12:23 +0000 (07:12 +0000)]
split the instcombine class definition out to a header shared
among the instcombine library.

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

14 years agoremove a ton of unneeded LLVMContext stuff.
Chris Lattner [Mon, 4 Jan 2010 07:02:48 +0000 (07:02 +0000)]
remove a ton of unneeded LLVMContext stuff.

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

14 years agomove InstCombineWorklist out to its own header.
Chris Lattner [Mon, 4 Jan 2010 06:30:00 +0000 (06:30 +0000)]
move InstCombineWorklist out to its own header.

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

14 years agoforgot to svn add these.
Chris Lattner [Mon, 4 Jan 2010 06:28:20 +0000 (06:28 +0000)]
forgot to svn add these.

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

14 years agomove instcombine to its own library, it's past time.
Chris Lattner [Mon, 4 Jan 2010 06:23:24 +0000 (06:23 +0000)]
move instcombine to its own library, it's past time.

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

14 years agoimplement an instcombine xform needed by clang's codegen
Chris Lattner [Mon, 4 Jan 2010 06:03:59 +0000 (06:03 +0000)]
implement an instcombine xform needed by clang's codegen
on the example in PR4216.  This doesn't trigger in the testsuite,
so I'd really appreciate someone scrutinizing the logic for
correctness.

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

14 years agofix PR5930, allowing the asmprinter to emit difference between
Chris Lattner [Sun, 3 Jan 2010 18:33:18 +0000 (18:33 +0000)]
fix PR5930, allowing the asmprinter to emit difference between
two labels as a truncate.

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