Skip to content
  1. Feb 03, 2012
  2. Feb 02, 2012
  3. Feb 01, 2012
    • Andrew Trick's avatar
      fix cmake · 3441597f
      Andrew Trick authored
      llvm-svn: 149553
      3441597f
    • Mon P Wang's avatar
      9f052066
    • Andrew Trick's avatar
      VLIW specific scheduler framework that utilizes deterministic finite automaton (DFA). · d06df96a
      Andrew Trick authored
      This new scheduler plugs into the existing selection DAG scheduling framework. It is a top-down critical path scheduler that tracks register pressure and uses a DFA for pipeline modeling.
      
      Patch by Sergei Larin!
      
      llvm-svn: 149547
      d06df96a
    • Chad Rosier's avatar
      Tidy up. · e273cb08
      Chad Rosier authored
      llvm-svn: 149521
      e273cb08
    • Elena Demikhovsky's avatar
      Passing AVX 256-bit structures in Win64 was wrong. · 824eed70
      Elena Demikhovsky authored
      Fixed Win64 calling conventions.
      
      llvm-svn: 149494
      824eed70
    • Elena Demikhovsky's avatar
      Shortened code in shuffle masks · 34cca175
      Elena Demikhovsky authored
      llvm-svn: 149493
      34cca175
    • Elena Demikhovsky's avatar
      Optimization for "truncate" operation on AVX. · 0e48c70b
      Elena Demikhovsky authored
      Truncating v4i64 -> v4i32 and v8i32 -> v8i16 may be done with set of shuffles.
      
      llvm-svn: 149485
      0e48c70b
    • Stepan Dyatkovskiy's avatar
      SwitchInst refactoring. · 513aaa56
      Stepan Dyatkovskiy authored
      The purpose of refactoring is to hide operand roles from SwitchInst user (programmer). If you want to play with operands directly, probably you will need lower level methods than SwitchInst ones (TerminatorInst or may be User). After this patch we can reorganize SwitchInst operands and successors as we want.
      
      What was done:
      
      1. Changed semantics of index inside the getCaseValue method:
      getCaseValue(0) means "get first case", not a condition. Use getCondition() if you want to resolve the condition. I propose don't mix SwitchInst case indexing with low level indexing (TI successors indexing, User's operands indexing), since it may be dangerous.
      2. By the same reason findCaseValue(ConstantInt*) returns actual number of case value. 0 means first case, not default. If there is no case with given value, ErrorIndex will returned.
      3. Added getCaseSuccessor method. I propose to avoid usage of TerminatorInst::getSuccessor if you want to resolve case successor BB. Use getCaseSuccessor instead, since internal SwitchInst organization of operands/successors is hidden and may be changed in any moment.
      4. Added resolveSuccessorIndex and resolveCaseIndex. The main purpose of these methods is to see how case successors are really mapped in TerminatorInst.
      4.1 "resolveSuccessorIndex" was created if you need to level down from SwitchInst to TerminatorInst. It returns TerminatorInst's successor index for given case successor.
      4.2 "resolveCaseIndex" converts low level successors index to case index that curresponds to the given successor.
      
      Note: There are also related compatability fix patches for dragonegg, klee, llvm-gcc-4.0, llvm-gcc-4.2, safecode, clang.
      llvm-svn: 149481
      513aaa56
    • Andrew Trick's avatar
      Add pass printer passes in the right place. · cbc845f9
      Andrew Trick authored
      The pass pointer should never be referenced after sending it to
      schedulePass(), which may delete the pass. To fix this bug I had to
      clean up the design leading to more goodness.
      
      You may notice now that any non-analysis pass is printed. So things like loop-simplify and lcssa show up, while target lib, target data, alias analysis do not show up. Normally, analysis don't mutate the IR, but you can now check this by using both -print-after and -print-before. The effects of analysis will now show up in between the two.
      
      The llc path is still in bad shape. But I'll be improving it in my next checkin. Meanwhile, print-machineinstrs still works the same way. With print-before/after, many llc passes that were not printed before now are, some of these should be converted to analysis. A few very important passes, isel and scheduler, are not properly initialized, so not printed.
      
      llvm-svn: 149480
      cbc845f9
    • Craig Topper's avatar
    • NAKAMURA Takumi's avatar
    • Hal Finkel's avatar
      A few of the changes suggested in code review (by Nick Lewycky) · 8a3aebe5
      Hal Finkel authored
      llvm-svn: 149472
      8a3aebe5
    • Argyrios Kyrtzidis's avatar
      Revert Chris' commits up to r149348 that started causing VMCoreTests unit test to fail. · 17c981a4
      Argyrios Kyrtzidis authored
      These are:
      
      r149348
      r149351
      r149352
      r149354
      r149356
      r149357
      r149361
      r149362
      r149364
      r149365
      
      llvm-svn: 149470
      17c981a4
    • Hal Finkel's avatar
      Add a basic-block autovectorization pass. · c34e5113
      Hal Finkel authored
      This is the initial checkin of the basic-block autovectorization pass along with some supporting vectorization infrastructure.
      Special thanks to everyone who helped review this code over the last several months (especially Tobias Grosser).
      
      llvm-svn: 149468
      c34e5113
    • Jim Grosbach's avatar
      Disable InstCombine unsafe folding bitcasts of calls w/ varargs. · 9fa04815
      Jim Grosbach authored
      Changing arguments from being passed as fixed to varargs is unsafe, as
      the ABI may require they be handled differently (stack vs. register, for
      example).
      
      Remove two tests which rely on the bitcast being folded into the direct
      call, which is exactly the transformation that's unsafe.
      
      llvm-svn: 149457
      9fa04815
    • Jim Grosbach's avatar
      Tidy up. One more return type mismatch fix. · a2147ce3
      Jim Grosbach authored
      llvm-svn: 149452
      a2147ce3
Loading