summaryrefslogtreecommitdiff
path: root/lib/CodeGen
Commit message (Collapse)AuthorAge
...
* Fancier algorithm in tail-merge comment implemented, so remove comment.Dale Johannesen2007-06-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37393 91177308-0d34-0410-b5e6-96231b3b80d8
* Implement smarter algorithm for choosing which blocks to tail-merge.Dale Johannesen2007-06-01
| | | | | | | | | See test/CodeGen/X86/test-pic-jtbl.ll for a case where it works well; shaves another 10K off our favorite benchmark. I was hesitant about this because of compile speed, but seems to do OK on a bootstrap. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37392 91177308-0d34-0410-b5e6-96231b3b80d8
* Correctly mark early-exit on the false path.Evan Cheng2007-06-01
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37387 91177308-0d34-0410-b5e6-96231b3b80d8
* Since TypeInfos are passed as i8 pointers, a NULL TypeInfo should be passedDuncan Sands2007-06-01
| | | | | | | as a null i8 pointer not as a 0 i32. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37383 91177308-0d34-0410-b5e6-96231b3b80d8
* Ifcvt triangle: don't ifcvt 'true' BB if it has other predecessors; don't ↵Evan Cheng2007-06-01
| | | | | | merge 'false' BB if it has other predecessors. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37382 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove a bogus check. Even terminators in a ifcvt need to be predicated. ↵Evan Cheng2007-06-01
| | | | | | Unconditional branches can usually be converted to conditional ones. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37380 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow multiple ifcvt candidates to share children blocks; add some debugging ↵Evan Cheng2007-06-01
| | | | | | code. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37379 91177308-0d34-0410-b5e6-96231b3b80d8
* Arrange for only 1 of multiple branches to landing pad to be kept.Dale Johannesen2007-05-31
| | | | | | | Do not remove empty landing pads (EH table needs to be updated) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37375 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a typo.Evan Cheng2007-05-31
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37374 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix the asmprinter so that a globalvalue can specify an explicit alignmentChris Lattner2007-05-31
| | | | | | | | | smaller than the preferred alignment, but so that the target can actually specify a minimum alignment if needed. This fixes some objc protocol failures Devang tracked down. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37373 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix PR1424.Lauro Ramos Venancio2007-05-31
| | | | | | | | When a function has FP, the register scavenging spill slot offset already was calculated. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37371 91177308-0d34-0410-b5e6-96231b3b80d8
* Change traversal order to bottom up in preparation for more aggressive ↵Evan Cheng2007-05-30
| | | | | | if-conversion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37365 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix CodeGen/PowerPC/2007-05-30-dagcombine-miscomp.ll, and PR1473.Chris Lattner2007-05-30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37362 91177308-0d34-0410-b5e6-96231b3b80d8
* Changed per review comment.Dale Johannesen2007-05-30
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37355 91177308-0d34-0410-b5e6-96231b3b80d8
* Make stable_sort in tail merging actually be stable (it never was, but didn'tDale Johannesen2007-05-29
| | | | | | | matter until my last change). Reenable tail merging by default. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37354 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't merge in tail block of a diamond if it has more than one predecessors ↵Evan Cheng2007-05-29
| | | | | | after if-conversion. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37353 91177308-0d34-0410-b5e6-96231b3b80d8
* If there is an empty block between a source and its successor block, it ↵Evan Cheng2007-05-29
| | | | | | still requires a unconditional branch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37344 91177308-0d34-0410-b5e6-96231b3b80d8
* Add missing const qualifiers.Evan Cheng2007-05-29
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37341 91177308-0d34-0410-b5e6-96231b3b80d8
* Correct the logic in LowerPartSet which cleared the bits from 0 to low-1.Zhou Sheng2007-05-26
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37331 91177308-0d34-0410-b5e6-96231b3b80d8
* tighten up recursion depth againChris Lattner2007-05-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37330 91177308-0d34-0410-b5e6-96231b3b80d8
* Silly boog.Evan Cheng2007-05-25
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37328 91177308-0d34-0410-b5e6-96231b3b80d8
* Blocks that cond-br and uncond-br/fallthrough to same block should haveDale Johannesen2007-05-24
| | | | | | | only one successor. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37324 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix for PR1444: do not create two successors to the same block.Dale Johannesen2007-05-24
| | | | | | | | Temporarily, this breaks CodeGen/Generic/2006-02-12-InsertLibraryCall.ll by exposing an unrelated latent problem; working on that. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37323 91177308-0d34-0410-b5e6-96231b3b80d8
* Minor comment cleanups.Dan Gohman2007-05-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37321 91177308-0d34-0410-b5e6-96231b3b80d8
* Add explicit qualification for namespace MVT members.Dan Gohman2007-05-24
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37320 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix a typo that caused combiner to create mal-formed pre-indexed store where ↵Evan Cheng2007-05-24
| | | | | | value store is the same as the base pointer. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37318 91177308-0d34-0410-b5e6-96231b3b80d8
* Two tail merging improvements:Dale Johannesen2007-05-23
| | | | | | | | | | When considering blocks with more than 2 predecessors, merge the block with the largest number of matching insns, rather than the first block found. Considering that 1 matching insn is enough to show a win for candidates that already end with a branch. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37315 91177308-0d34-0410-b5e6-96231b3b80d8
* Mark all calls as "could throw", when exceptions are enabled. Emit necessary ↵Anton Korobeynikov2007-05-23
| | | | | | LP info too. This fixes PR1439 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37311 91177308-0d34-0410-b5e6-96231b3b80d8
* prevent exponential recursion in isNegatibleForFreeChris Lattner2007-05-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37310 91177308-0d34-0410-b5e6-96231b3b80d8
* Preliminary iterative if-conversion support.Evan Cheng2007-05-23
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37309 91177308-0d34-0410-b5e6-96231b3b80d8
* name change requested by review of previous patchDale Johannesen2007-05-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37289 91177308-0d34-0410-b5e6-96231b3b80d8
* Silence a warning.Owen Anderson2007-05-22
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37288 91177308-0d34-0410-b5e6-96231b3b80d8
* Make tail merging the default, except on powerPC. There was no prior artDale Johannesen2007-05-22
| | | | | | | | for a target-dependent default with a command-line override; this way should be generally usable. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37285 91177308-0d34-0410-b5e6-96231b3b80d8
* If-convert early exit blocks (returns, etc.); bug fixes, etc.Evan Cheng2007-05-21
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37270 91177308-0d34-0410-b5e6-96231b3b80d8
* Only emit one entry in the exception action table for each action, even ifDuncan Sands2007-05-21
| | | | | | | it occurs for multiple landing pads. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37267 91177308-0d34-0410-b5e6-96231b3b80d8
* same patch as the previous one, but the symmetric caseChris Lattner2007-05-19
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37249 91177308-0d34-0410-b5e6-96231b3b80d8
* Disable the (A == (B-A)) -> 2*A == B xform when the sub has multiple uses (inChris Lattner2007-05-19
| | | | | | | | | | | | | | | | | | | | | | | this case, the xform introduces an extra operation). This compiles PowerPC/compare-duplicate.ll into: _test: subf r2, r3, r4 cmplw cr0, r2, r3 bne cr0, LBB1_2 ;F instead of: _test: slwi r2, r3, 1 subf r3, r3, r4 cmplw cr0, r4, r2 bne cr0, LBB1_2 ;F This is target independent of course. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37246 91177308-0d34-0410-b5e6-96231b3b80d8
* Clean up.Evan Cheng2007-05-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37237 91177308-0d34-0410-b5e6-96231b3b80d8
* Change to depth-first traversal.Evan Cheng2007-05-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37236 91177308-0d34-0410-b5e6-96231b3b80d8
* Document an inefficiency in tail merging.Dale Johannesen2007-05-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37235 91177308-0d34-0410-b5e6-96231b3b80d8
* Qualify calls to getTypeForValueType with MVT:: too.Dan Gohman2007-05-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37233 91177308-0d34-0410-b5e6-96231b3b80d8
* Some restructuring in preparation for most aggressive if-conversion.Evan Cheng2007-05-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37231 91177308-0d34-0410-b5e6-96231b3b80d8
* Qualify several calls to functions in the MVT namespace, for consistency.Dan Gohman2007-05-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37230 91177308-0d34-0410-b5e6-96231b3b80d8
* Watch out for blocks that end with a return.Evan Cheng2007-05-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37227 91177308-0d34-0410-b5e6-96231b3b80d8
* If true / false blocks fallthrough before ifcvt, add unconditional branches ↵Evan Cheng2007-05-18
| | | | | | to ifcvt'd block. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37200 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove some unneeded branches. (spotted by Evan, thanks)Dale Johannesen2007-05-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37198 91177308-0d34-0410-b5e6-96231b3b80d8
* Make use of target specific block size limits; bug fixes.Evan Cheng2007-05-18
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37195 91177308-0d34-0410-b5e6-96231b3b80d8
* Move isSuccessor() offline, change it to use std::find.Evan Cheng2007-05-17
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37190 91177308-0d34-0410-b5e6-96231b3b80d8
* disable MaskedValueIsZero, ComputeMaskedBits, and SimplifyDemandedBits forChris Lattner2007-05-17
| | | | | | | | i128 integers. The 64-bit masks are not wide enough to represent the results. These should be converted to APInt someday. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37169 91177308-0d34-0410-b5e6-96231b3b80d8
* add expand support for ADDC/SUBC/ADDE/SUBE so we can codegen 128-bit add/sub ↵Chris Lattner2007-05-17
| | | | | | on 32-bit (or less) targets git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37168 91177308-0d34-0410-b5e6-96231b3b80d8