Skip to content
  1. Dec 04, 2008
    • Scott Michel's avatar
      CellSPU: · 40f54d22
      Scott Michel authored
      - First patch from Nehal Desai, a new contributor at Aerospace. Nehal's patch
        fixes sign/zero/any-extending loads for integers and floating point. Example
        code, compiled w/o debugging or optimization where he first noticed the bug:
      
        int main(void) {
          float a = 99.0;
          printf("%d\n", a);
          return 0;
        }
      
        Verified that this code actually works on a Cell SPU.
      
      Changes by Scott Michel:
      - Fix bug in the value type list constructed by SPUISD::LDRESULT to include
        both the load result's result and chain, not just the chain alone.
      - Simplify LowerLOAD and remove extraneous and unnecessary chains.
      - Remove unused SPUISD pseudo instructions.
      
      llvm-svn: 60526
      40f54d22
  2. Dec 03, 2008
  3. Dec 02, 2008
    • Scott Michel's avatar
      CellSPU: · 7364025f
      Scott Michel authored
      - Incorporate Tilmann Scheller's ISD::TRUNCATE custom lowering patch
      - Update SPU calling convention info, even if it's not used yet (but can be
        at some point or another)
      - Ensure that any-extended f32 loads are custom lowered, especially when
        they're promoted for use in printf.
      
      llvm-svn: 60438
      7364025f
  4. Dec 01, 2008
    • Scott Michel's avatar
      CellSPU: · 08a4e204
      Scott Michel authored
      - Fix v2[if]64 vector insertion code before IBM files a bug report.
      - Ensure that zero (0) offsets relative to $sp don't trip an assert
        (add $sp, 0 gets legalized to $sp alone, tripping an assert)
      - Shuffle masks passed to SPUISD::SHUFB are now v16i8 or v4i32
      
      llvm-svn: 60358
      08a4e204
    • Duncan Sands's avatar
      There are no longer any places that require a · 3d960941
      Duncan Sands authored
      MERGE_VALUES node with only one operand, so get
      rid of special code that only existed to handle
      that possibility.
      
      llvm-svn: 60349
      3d960941
    • Duncan Sands's avatar
      Change the interface to the type legalization method · 6ed40141
      Duncan Sands authored
      ReplaceNodeResults: rather than returning a node which
      must have the same number of results as the original
      node (which means mucking around with MERGE_VALUES,
      and which is also easy to get wrong since SelectionDAG
      folding may mean you don't get the node you expect),
      return the results in a vector.
      
      llvm-svn: 60348
      6ed40141
  5. Nov 25, 2008
  6. Nov 24, 2008
    • Scott Michel's avatar
      CellSPU: · 2e5df906
      Scott Michel authored
      (a) Slight rethink on i64 zero/sign/any extend code - use a shuffle to
          directly zero-extend i32 to i64, but use rotates and shifts for
          sign extension. Also ensure unified register consistency.
      (b) Add new test harness for i64 operations: i64ops.ll
      
      llvm-svn: 59970
      2e5df906
    • Scott Michel's avatar
      CellSPU: · efc8c7a2
      Scott Michel authored
      (a) Improve the extract element code: there's no need to do gymnastics with
          rotates into the preferred slot if a shuffle will do the same thing.
      (b) Rename a couple of SPUISD pseudo-instructions for readability and better
          semantic correspondence.
      (c) Fix i64 sign/any/zero extension lowering.
      
      llvm-svn: 59965
      efc8c7a2
    • Evan Cheng's avatar
      Move target independent td files from lib/Target/ to include/llvm/Target so... · 977e7be9
      Evan Cheng authored
      Move target independent td files from lib/Target/ to include/llvm/Target so they can be distributed along with the header files.
      
      llvm-svn: 59953
      977e7be9
  7. Nov 23, 2008
  8. Nov 21, 2008
    • Scott Michel's avatar
      CellSPU: · c6918c1f
      Scott Michel authored
      (a) Fix bgs 3052, 3057
      (b) Incorporate Duncan's suggestions re: i1 promotion
      (c) Indentation updates.
      
      llvm-svn: 59790
      c6918c1f
  9. Nov 20, 2008
    • Scott Michel's avatar
      CellSPU: · 3726019a
      Scott Michel authored
      (a) Remove moved file (SPUAsmPrinter.cpp) to make svn happy.
      (b) Remove truncated stores that will never be used.
      (c) Add initial support for __muldi3 as a libcall.
      
      llvm-svn: 59734
      3726019a
    • Scott Michel's avatar
      CellSPU: Custom lower truncating stores of i8 to i1 (should not have been · a7521ee3
      Scott Michel authored
      promote), fix signed conversion of indexed offsets.
      
      llvm-svn: 59707
      a7521ee3
    • Scott Michel's avatar
      CellSPU: Adjust spacing/tabulation · e361f08a
      Scott Michel authored
      llvm-svn: 59703
      e361f08a
    • Dan Gohman's avatar
      Experimental post-pass scheduling support. Post-pass scheduling · 60cb69e6
      Dan Gohman authored
      is currently off by default, and can be enabled with
      -disable-post-RA-scheduler=false.
      
      This doesn't have a significant impact on most code yet because it doesn't
      yet do anything to address anti-dependencies and it doesn't attempt to
      disambiguate memory references. Also, several popular targets
      don't have pipeline descriptions yet.
      
      The majority of the changes here are splitting the SelectionDAG-specific
      code out of ScheduleDAG, so that ScheduleDAG can be moved to
      libLLVMCodeGen.a. The interface between ScheduleDAG-using code and
      the rest of the scheduling code is somewhat rough and will evolve.
      
      llvm-svn: 59676
      60cb69e6
  10. Nov 19, 2008
  11. Nov 18, 2008
  12. Nov 15, 2008
  13. Nov 11, 2008
  14. Nov 08, 2008
  15. Nov 07, 2008
  16. Nov 05, 2008
    • Dan Gohman's avatar
      Eliminate the ISel priority queue, which used the topological order for a · f14b77eb
      Dan Gohman authored
      priority function. Instead, just iterate over the AllNodes list, which is
      already in topological order. This eliminates a fair amount of bookkeeping,
      and speeds up the isel phase by about 15% on many testcases.
      
      The impact on most targets is that AddToISelQueue calls can be simply removed.
      
      In the x86 target, there are two additional notable changes.
      
      The rule-bending AND+SHIFT optimization in MatchAddress that creates new
      pre-isel nodes during isel is now a little more verbose, but more robust.
      Instead of either creating an invalid DAG or creating an invalid topological
      sort, as it has historically done, it can now just insert the new nodes into
      the node list at a position where they will be consistent with the topological
      ordering.
      
      Also, the address-matching code has logic that checked to see if a node was
      "already selected". However, when a node is selected, it has all its uses
      taken away via ReplaceAllUsesWith or equivalent, so it won't recieve any
      further visits from MatchAddress. This code is now removed.
      
      llvm-svn: 58748
      f14b77eb
    • Dan Gohman's avatar
      Use getTargetConstant instead of getConstant for nodes that should not be visited · fd820528
      Dan Gohman authored
      by isel and potentially forced into registers.
      
      llvm-svn: 58747
      fd820528
  17. Nov 03, 2008
  18. Oct 30, 2008
  19. Oct 27, 2008
    • David Greene's avatar
      · ce2a9381
      David Greene authored
      Have TableGen emit setSubgraphColor calls under control of a -gen-debug
      flag.  Then in a debugger developers can set breakpoints at these calls
      to see waht is about to be selected and what the resulting subgraph
      looks like.  This really helps when debugging instruction selection.
      
      llvm-svn: 58278
      ce2a9381
  20. Oct 18, 2008
    • Dan Gohman's avatar
      Teach DAGCombine to fold constant offsets into GlobalAddress nodes, · 2fe6bee5
      Dan Gohman authored
      and add a TargetLowering hook for it to use to determine when this
      is legal (i.e. not in PIC mode, etc.)
      
      This allows instruction selection to emit folded constant offsets
      in more cases, such as the included testcase, eliminating the need
      for explicit arithmetic instructions.
      
      This eliminates the need for the C++ code in X86ISelDAGToDAG.cpp
      that attempted to achieve the same effect, but wasn't as effective.
      
      Also, fix handling of offsets in GlobalAddressSDNodes in several
      places, including changing GlobalAddressSDNode's offset from
      int to int64_t.
      
      The Mips, Alpha, Sparc, and CellSPU targets appear to be
      unaware of GlobalAddress offsets currently, so set the hook to
      false on those targets.
      
      llvm-svn: 57748
      2fe6bee5
Loading