Skip to content
  1. Feb 12, 2012
  2. Feb 10, 2012
    • Hal Finkel's avatar
      Update BBVectorize to use aliasesUnknownInst. · 1bde3f86
      Hal Finkel authored
      This allows BBVectorize to check the "unknown instruction" list in the
      alias sets. This is important to prevent instruction fusing from reordering
      function calls. Resolves PR11920.
      
      llvm-svn: 150250
      1bde3f86
  3. Feb 09, 2012
  4. Feb 08, 2012
  5. Feb 07, 2012
  6. Feb 06, 2012
  7. Feb 05, 2012
  8. Feb 04, 2012
    • Hal Finkel's avatar
      Boost the effective chain depth of loads and stores. · 135cac92
      Hal Finkel authored
      By default, boost the chain depth contribution of loads and stores. This will allow a load/store pair to vectorize even when it would not otherwise be long enough to satisfy the chain depth requirement.
      
      llvm-svn: 149761
      135cac92
  9. Feb 03, 2012
  10. Feb 02, 2012
    • Benjamin Kramer's avatar
      BBVectorize: Simplify code, no functionality change. · f61f60d9
      Benjamin Kramer authored
      Also silences warnings about bodyless for loops.
      
      llvm-svn: 149612
      f61f60d9
    • Hal Finkel's avatar
      Minor changes from review. · 8cf51b87
      Hal Finkel authored
      As suggested by Nick Lewycky, the tree traversal queues have been changed to SmallVectors and the associated loops have been rotated. Also, an 80-col violation was fixed.
      
      llvm-svn: 149607
      8cf51b87
    • Hal Finkel's avatar
      Vectorize long blocks in groups. · 0f3298e8
      Hal Finkel authored
      Long basic blocks with many candidate pairs (such as in the SHA implementation in Perl 5.14; thanks to Roman Divacky for the example) used to take an unacceptably-long time to compile. Instead, break long blocks into groups so that no group has too many candidate pairs.
      
      llvm-svn: 149595
      0f3298e8
  11. Feb 01, 2012
    • 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
    • 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
Loading