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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Chris Lattner [Sun, 3 Jan 2010 18:14:24 +0000 (18:14 +0000)]
it isn't safe to speculative load from a malloc, it might have
returned null, and may not have been big enough in any case.
Thanks to Jay Foad for pointing this out!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92452
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 3 Jan 2010 18:10:58 +0000 (18:10 +0000)]
add PR#
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92451
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 3 Jan 2010 18:09:40 +0000 (18:09 +0000)]
differences between two blockaddress's don't cause a
global variable initializer to require relocations.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92450
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 3 Jan 2010 06:58:48 +0000 (06:58 +0000)]
pull my debug hooks out, I'm done with this xform for now.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92446
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Sun, 3 Jan 2010 04:39:07 +0000 (04:39 +0000)]
Small cleanups, refactor some duplicated code into a single method. No
functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92445
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sun, 3 Jan 2010 03:03:27 +0000 (03:03 +0000)]
generalize the previous transformation to handle indexing into
arrays of structs and other arrays, so long as all the subsequent
indexes are constants. This triggers frequently for stuff like:
@divisions = internal constant [29 x [2 x i32]] [[2 x i32] zeroinitializer, [2 x i32] [i32 0, i32 1], [2 x i32] [i32 0, i32 2], [2 x i32] [i32 0, i32 1], [2 x i32] zeroinitializer, [2 x i32] [i32 0, i32 1], [2 x i32] [i32 0, i32 1], [2 x i32] [i32 0, i32 2], [2 x i32] [i32 0, i32 2], [2 x i32] zeroinitializer, [2 x i32] zeroinitializer, [2 x i32] zeroinitializer, [2 x i32] [i32 0, i32 2], [2 x i32] [i32 0, i32 1], [2 x i32] zeroinitializer, [2 x i32] [i32 1, i32 0], [2 x i32] [i32 1, i32 1], [2 x i32] [i32 1, i32 1], [2 x i32] [i32 1, i32 2], [2 x i32] [i32 1, i32 1], [2 x i32] [i32 1, i32 0], [2 x i32] [i32 1, i32 2], [2 x i32] [i32 1, i32 2], [2 x i32] [i32 1, i32 0], [2 x i32] [i32 1, i32 0], [2 x i32] [i32 1, i32 0], [2 x i32] [i32 1, i32 1], [2 x i32] [i32 1, i32 2], [2 x i32] [i32 1, i32 2]], align 32 ; <[29 x [2 x i32]]*> [#uses=50]
%623 = getelementptr inbounds [29 x [2 x i32]]* @divisions, i64 0, i64 %619, i64 0 ; <i32*> [#uses=1]
%684 = icmp eq i32 %683, 999
also for the "my_defs" table in 'gs', etc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92444
91177308-0d34-0410-b5e6-
96231b3b80d8
Nick Lewycky [Sun, 3 Jan 2010 00:55:31 +0000 (00:55 +0000)]
Cleanup.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92436
91177308-0d34-0410-b5e6-
96231b3b80d8
Chris Lattner [Sat, 2 Jan 2010 22:08:28 +0000 (22:08 +0000)]
teach instcombine to optimize idioms like A[i]&42 == 0. This
occurs in 403.gcc in mode_mask_array, in safe-ctype.c (which
is copied in multiple apps) in _sch_istable, etc.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@92427
91177308-0d34-0410-b5e6-
96231b3b80d8