Skip to content
  1. Feb 11, 2012
  2. Feb 08, 2012
  3. Feb 03, 2012
  4. Jan 23, 2012
  5. Jan 20, 2012
  6. Jan 16, 2012
  7. Jan 10, 2012
  8. Dec 22, 2011
  9. Dec 07, 2011
    • Evan Cheng's avatar
      Add bundle aware API for querying instruction properties and switch the code · 7f8e563a
      Evan Cheng authored
      generator to it. For non-bundle instructions, these behave exactly the same
      as the MC layer API.
      
      For properties like mayLoad / mayStore, look into the bundle and if any of the
      bundled instructions has the property it would return true.
      For properties like isPredicable, only return true if *all* of the bundled
      instructions have the property.
      For properties like canFoldAsLoad, isCompare, conservatively return false for
      bundles.
      
      llvm-svn: 146026
      7f8e563a
  10. Dec 06, 2011
    • Evan Cheng's avatar
      First chunk of MachineInstr bundle support. · 2a81dd4a
      Evan Cheng authored
      1. Added opcode BUNDLE
      2. Taught MachineInstr class to deal with bundled MIs
      3. Changed MachineBasicBlock iterator to skip over bundled MIs; added an iterator to walk all the MIs
      4. Taught MachineBasicBlock methods about bundled MIs
      
      llvm-svn: 145975
      2a81dd4a
  11. Nov 16, 2011
  12. Oct 26, 2011
  13. Oct 20, 2011
  14. Oct 17, 2011
  15. Oct 13, 2011
  16. Oct 12, 2011
    • Evan Cheng's avatar
      Disable machine LICM speculation check (for profitability) until I have time... · b35afcaa
      Evan Cheng authored
      Disable machine LICM speculation check (for profitability) until I have time to investigate the regressions.
      
      llvm-svn: 141813
      b35afcaa
    • Bill Wendling's avatar
      Expand the check for a landing pad so that it looks at the basic block's · 918cea2c
      Bill Wendling authored
      containing loop's header to see if that's a landing pad. If it is, then we don't
      want to hoist instructions out of the loop and above the header.
      
      llvm-svn: 141767
      918cea2c
    • Evan Cheng's avatar
      Fix r141744. · af138954
      Evan Cheng authored
      1. The speculation check may not have been performed if the BB hasn't had a load
         LICM candidate.
      2. If the candidate would be CSE'ed, then go ahead and speculatively LICM the
         instruction even if it's in high register pressure situation.
      
      llvm-svn: 141747
      af138954
    • Evan Cheng's avatar
      Refine r141689 with a tri-state variable. · f192ca07
      Evan Cheng authored
      Also teach MachineLICM to avoid "speculation" when register pressure is high.
      
      llvm-svn: 141744
      f192ca07
    • Bill Wendling's avatar
      N.B. This is with the new EH scheme: · 579ff6c3
      Bill Wendling authored
      The blocks with invokes have branches to the dispatch block, because that more
      correctly models the behavior of the CFG. The dispatch of course has edges to
      the landing pads. Those landing pads could contain invokes, which then have
      branches back to the dispatch. This creates a loop. The machine LICM pass looks
      at this loop and thinks it can hoist elements out of it. But because the
      dispatch is an alternate entry point into the program, the hoisted instructions
      won't be executed.
      
      I wasn't able to get a testcase which was small and could reproduce all of the
      time. The function_try_block.cpp in llvm-test was where this showed up.
      
      llvm-svn: 141726
      579ff6c3
  17. Oct 11, 2011
  18. Oct 10, 2011
  19. Sep 01, 2011
  20. Jun 29, 2011
  21. Jun 28, 2011
  22. Jun 27, 2011
  23. Apr 11, 2011
  24. Mar 07, 2011
  25. Jan 20, 2011
    • Evan Cheng's avatar
      Sorry, several patches in one. · b8b0ad80
      Evan Cheng authored
      TargetInstrInfo:
      Change produceSameValue() to take MachineRegisterInfo as an optional argument.
      When in SSA form, targets can use it to make more aggressive equality analysis.
      
      Machine LICM:
      1. Eliminate isLoadFromConstantMemory, use MI.isInvariantLoad instead.
      2. Fix a bug which prevent CSE of instructions which are not re-materializable.
      3. Use improved form of produceSameValue.
      
      ARM:
      1. Teach ARM produceSameValue to look pass some PIC labels.
      2. Look for operands from different loads of different constant pool entries
         which have same values.
      3. Re-implement PIC GA materialization using movw + movt. Combine the pair with
         a "add pc" or "ldr [pc]" to form pseudo instructions. This makes it possible
         to re-materialize the instruction, allow machine LICM to hoist the set of
         instructions out of the loop and make it possible to CSE them. It's a bit
         hacky, but it significantly improve code quality.
      4. Some minor bug fixes as well.
      
      With the fixes, using movw + movt to materialize GAs significantly outperform the
      load from constantpool method. 186.crafty and 255.vortex improved > 20%, 254.gap
      and 176.gcc ~10%.
      
      llvm-svn: 123905
      b8b0ad80
  26. Jan 10, 2011
  27. Nov 11, 2010
Loading