summaryrefslogtreecommitdiff
path: root/lib/CodeGen
Commit message (Collapse)AuthorAge
...
* Add target hook to specify block size limit for if-conversion.Evan Cheng2007-05-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37134 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't fold bitconvert(load) for preinc/postdec loads. Likewise stores.Dale Johannesen2007-05-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37130 91177308-0d34-0410-b5e6-96231b3b80d8
* isBlockPredicable() always ignore terminal instructions; add comments.Evan Cheng2007-05-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37126 91177308-0d34-0410-b5e6-96231b3b80d8
* Rename M_PREDICATED to M_PREDICABLE; Moved isPredicable() to MachineInstr.Evan Cheng2007-05-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37121 91177308-0d34-0410-b5e6-96231b3b80d8
* Output exception call-sites in address order, as required by the unwindingDuncan Sands2007-05-16
| | | | | | | runtime. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37104 91177308-0d34-0410-b5e6-96231b3b80d8
* Use a ptr set instead of a linear search to unique TokenFactor operands.Chris Lattner2007-05-16
| | | | | | | This fixes PR1423 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37102 91177308-0d34-0410-b5e6-96231b3b80d8
* Devang points out that we need an assertion here.Evan Cheng2007-05-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37097 91177308-0d34-0410-b5e6-96231b3b80d8
* Bug fix: should check ABI alignment, not pref. alignment.Evan Cheng2007-05-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37094 91177308-0d34-0410-b5e6-96231b3b80d8
* Initial commit of (very basic) if converter.Evan Cheng2007-05-16
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37092 91177308-0d34-0410-b5e6-96231b3b80d8
* Remove extra CFG edges before doing these passes; it makes them happier.Dale Johannesen2007-05-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37089 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix an infinite recursion in GetNegatedExpression.Lauro Ramos Venancio2007-05-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37086 91177308-0d34-0410-b5e6-96231b3b80d8
* The index into the actions table is a ULEB128 not a SLEB128.Duncan Sands2007-05-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37084 91177308-0d34-0410-b5e6-96231b3b80d8
* Un-brain-dead-ify the lowering of part set for the reverse case.Reid Spencer2007-05-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37071 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix some subtle issues handling immediate values. This fixesChris Lattner2007-05-15
| | | | | | | test/CodeGen/ARM/2007-05-14-InlineAsmCstCrash.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37069 91177308-0d34-0410-b5e6-96231b3b80d8
* Added getNumExplicitOperands and findFirstPredOperand.Evan Cheng2007-05-15
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37064 91177308-0d34-0410-b5e6-96231b3b80d8
* implement a simple fneg optimization/propagation thing. This compiles:Chris Lattner2007-05-14
| | | | | | | | | | | | | | | | | | | | CodeGen/PowerPC/fneg.ll into: _t4: fmul f0, f3, f4 fmadd f1, f1, f2, f0 blr instead of: _t4: fneg f0, f3 fmul f0, f0, f4 fmsub f1, f1, f2, f0 blr git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37054 91177308-0d34-0410-b5e6-96231b3b80d8
* Only worry about intervening kill if there are more than one live ranges in ↵Evan Cheng2007-05-14
| | | | | | the interval. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37052 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix for PR1406:Evan Cheng2007-05-14
| | | | | | | | | | | | | | v1 = r2 = move v1 = op r2<kill> ... r2 = move v1 = op r2<kill> Clear the first r2 kill if v1 and r2 are joined. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37050 91177308-0d34-0410-b5e6-96231b3b80d8
* When marking a register as being implicitly defined, make sure to clear its ↵Evan Cheng2007-05-14
| | | | | | partial use info as well. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37046 91177308-0d34-0410-b5e6-96231b3b80d8
* Give names to the final result values of the part_set computations. ThisReid Spencer2007-05-14
| | | | | | | just aids in readability and debugability of the output. No functional change. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37037 91177308-0d34-0410-b5e6-96231b3b80d8
* Emit function debug frames in one atom. This will prevent us from generating ↵Anton Korobeynikov2007-05-13
| | | | | | | | | incorrect assembler in case of both debug information & exception information presented. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37019 91177308-0d34-0410-b5e6-96231b3b80d8
* Emit multiple common EH frames for multiple (including blank) personalityAnton Korobeynikov2007-05-13
| | | | | | | | | functions. This partly fixes PR1414: now we're restricted only to one personality function per eh frame, not per module. Further work on "multiple personalities" topic needs representative example. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37018 91177308-0d34-0410-b5e6-96231b3b80d8
* More DWARF-related things cleanup:Anton Korobeynikov2007-05-12
| | | | | | | | | | | 1. Fix PR1380 2. Apply Duncan's patch from PR1410 3. Insert workaround for "one personality function per module" as noted in PR1414 4. Emit correct debug frames for x86/linux. This partly fixes DebugInfo/2006-11-06-StackTrace.cpp: stack trace is shown correctly, but arguments for function on top of stack are displayed incorrectly. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37015 91177308-0d34-0410-b5e6-96231b3b80d8
* Get the size of auto arrays right, regardless of its changing size.Reid Spencer2007-05-12
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@37006 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix ↵Devang Patel2007-05-11
| | | | | | http://lists.cs.uiuc.edu/pipermail/llvm-commits/Week-of-Mon-20070507/049516.html git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36998 91177308-0d34-0410-b5e6-96231b3b80d8
* Perform correct actions numbers/sizes computationAnton Korobeynikov2007-05-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36988 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix action No calculation in multiple-invoke-one-LP modeAnton Korobeynikov2007-05-11
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36987 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not generate branches to entry block. This fixes several test suiteDale Johannesen2007-05-10
| | | | | | | failures on PPC (can happen only when prologue code is null) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36979 91177308-0d34-0410-b5e6-96231b3b80d8
* Ooops. Some debugging stuff :)Anton Korobeynikov2007-05-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36978 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow multiple invokes per landing pad. This (probably) fixes PR1410.Anton Korobeynikov2007-05-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36977 91177308-0d34-0410-b5e6-96231b3b80d8
* Later computations assume we are aligned at this point.Duncan Sands2007-05-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36975 91177308-0d34-0410-b5e6-96231b3b80d8
* TypeIds are indexed by j, not iAnton Korobeynikov2007-05-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36974 91177308-0d34-0410-b5e6-96231b3b80d8
* Make tail merging handle many more cases (all it can, I think).Dale Johannesen2007-05-10
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36966 91177308-0d34-0410-b5e6-96231b3b80d8
* Can't fold the bit_convert is the store is a truncating store.Evan Cheng2007-05-09
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36962 91177308-0d34-0410-b5e6-96231b3b80d8
* Do not assert, when case range split metric is zero and JTs are not allowed: ↵Anton Korobeynikov2007-05-09
| | | | | | | | | just emit binary tree in this case. This fixes PR1403. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36959 91177308-0d34-0410-b5e6-96231b3b80d8
* Change names from RA to something unique to get rid of naming conflicts withBill Wendling2007-05-08
| | | | | | | certain linkers... git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36944 91177308-0d34-0410-b5e6-96231b3b80d8
* Eliminate MarkVirtRegAliveInBlock recursion.Evan Cheng2007-05-08
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36943 91177308-0d34-0410-b5e6-96231b3b80d8
* Forgot a check.Evan Cheng2007-05-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36910 91177308-0d34-0410-b5e6-96231b3b80d8
* Enable a couple of xforms:Evan Cheng2007-05-07
| | | | | | | | | | - (store (bitconvert v)) -> (store v) if resultant store does not require higher alignment - (bitconvert (load v)) -> (load (bitconvert*)v) if resultant load does not require higher alignment git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36908 91177308-0d34-0410-b5e6-96231b3b80d8
* Handle some non-exit blocks in tail merging.Dale Johannesen2007-05-07
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36907 91177308-0d34-0410-b5e6-96231b3b80d8
* Parameter attributes on invoke calls were being lost due to the wrongDuncan Sands2007-05-07
| | | | | | | | attribute index being used. Fix proposed by Anton Korobeynikov, who asked me to implement and commit it for him. This is PR1398. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36906 91177308-0d34-0410-b5e6-96231b3b80d8
* DetabifyAnton Korobeynikov2007-05-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36891 91177308-0d34-0410-b5e6-96231b3b80d8
* Fix typo in comment.Nick Lewycky2007-05-06
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36873 91177308-0d34-0410-b5e6-96231b3b80d8
* Use the personality function that was registered with MMI rather thanDuncan Sands2007-05-05
| | | | | | | hardwiring in the C++ one. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36789 91177308-0d34-0410-b5e6-96231b3b80d8
* Propagate alignment/volatility in two places.Chris Lattner2007-05-05
| | | | | | | | | Implement support for expanding a bitcast from an illegal vector type to a legal one (e.g. 4xi32 -> 4xf32 in SSE1). This fixes PR1371 and CodeGen/X86/2007-05-05-VecCastExpand.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36787 91177308-0d34-0410-b5e6-96231b3b80d8
* Spelling fix.Duncan Sands2007-05-05
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36781 91177308-0d34-0410-b5e6-96231b3b80d8
* Emit sections/directives in the proper order. This fixes PR1376. Also,Anton Korobeynikov2007-05-05
| | | | | | | some small cleanup was made. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36780 91177308-0d34-0410-b5e6-96231b3b80d8
* A bitcast of a global variable may have been constant folded to a GEP -Duncan Sands2007-05-04
| | | | | | | handle this case too. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36745 91177308-0d34-0410-b5e6-96231b3b80d8
* Don't create indexed load / store with zero offset!Evan Cheng2007-05-03
| | | | git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36716 91177308-0d34-0410-b5e6-96231b3b80d8
* Allow i/s to match (gv+c). This fixes ↵Chris Lattner2007-05-03
| | | | | | | | | CodeGen/PowerPC/2007-05-03-InlineAsm-S-Constraint.ll and PR1382 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@36672 91177308-0d34-0410-b5e6-96231b3b80d8