Skip to content
  1. Mar 07, 2011
  2. 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
  3. Jan 10, 2011
  4. Nov 11, 2010
  5. Nov 02, 2010
  6. Oct 26, 2010
  7. Oct 21, 2010
    • Evan Cheng's avatar
      More accurate estimate / tracking of register pressure. · 87066f06
      Evan Cheng authored
      - Initial register pressure in the loop should be all the live defs into the
        loop. Not just those from loop preheader which is often empty.
      - When an instruction is hoisted, update register pressure from loop preheader
        to the original BB.
      - Treat only use of a virtual register as kill since the code is still SSA.
      
      llvm-svn: 116956
      87066f06
  8. Oct 20, 2010
  9. Oct 19, 2010
    • Evan Cheng's avatar
      Re-enable register pressure aware machine licm with fixes. Hoist() may have · 63c7608c
      Evan Cheng authored
      erased the instruction during LICM so UpdateRegPressureAfter() should not
      reference it afterwards.
      
      llvm-svn: 116845
      63c7608c
    • Owen Anderson's avatar
      Get rid of static constructors for pass registration. Instead, every pass... · 6c18d1aa
      Owen Anderson authored
      Get rid of static constructors for pass registration.  Instead, every pass exposes an initializeMyPassFunction(), which
      must be called in the pass's constructor.  This function uses static dependency declarations to recursively initialize
      the pass's dependencies.
      
      Clients that only create passes through the createFooPass() APIs will require no changes.  Clients that want to use the
      CommandLine options for passes will need to manually call the appropriate initialization functions in PassInitialization.h
      before parsing commandline arguments.
      
      I have tested this with all standard configurations of clang and llvm-gcc on Darwin.  It is possible that there are problems
      with the static dependencies that will only be visible with non-standard options.  If you encounter any crash in pass
      registration/creation, please send the testcase to me directly.
      
      llvm-svn: 116820
      6c18d1aa
    • Daniel Dunbar's avatar
      Revert r116781 "- Add a hook for target to determine whether an instruction def · 418204e5
      Daniel Dunbar authored
      is", which breaks some nightly tests.
      
      llvm-svn: 116816
      418204e5
    • Andrew Trick's avatar
      Fix for machine licm assert: RCCost <= RegPressure[RCId] · 2006bbef
      Andrew Trick authored
      in MultiSource/Benchmarks/VersaBench/beamformer/beamformer.
      SmallSet.insert returns true if the element is inserted.
      
      llvm-svn: 116790
      2006bbef
    • Evan Cheng's avatar
      - Add a hook for target to determine whether an instruction def is · 8249dfe6
      Evan Cheng authored
        "long latency" enough to hoist even if it may increase spilling. Reloading
        a value from spill slot is often cheaper than performing an expensive
        computation in the loop. For X86, that means machine LICM will hoist
        SQRT, DIV, etc. ARM will be somewhat aggressive with VFP and NEON
        instructions.
      - Enable register pressure aware machine LICM by default.
      
      llvm-svn: 116781
      8249dfe6
  10. Oct 16, 2010
  11. Oct 14, 2010
  12. Oct 12, 2010
  13. Oct 08, 2010
  14. Aug 06, 2010
  15. Jul 29, 2010
  16. Jul 22, 2010
  17. Jul 20, 2010
  18. Jul 14, 2010
  19. Jul 12, 2010
  20. Jul 09, 2010
  21. Jun 22, 2010
  22. May 29, 2010
  23. May 13, 2010
  24. Apr 20, 2010
  25. Apr 17, 2010
  26. Apr 14, 2010
  27. Apr 13, 2010
  28. Apr 12, 2010
  29. Apr 09, 2010
Loading