Skip to content
  1. Aug 05, 2007
    • Chris Lattner's avatar
      Switch the internal "Info" map from an std::map to a DenseMap. This · 77e05fe2
      Chris Lattner authored
      speeds up idom by about 45% and postidom by about 33%.
      
      Some extra precautions must be taken not to invalidate densemap iterators.
      
      llvm-svn: 40827
      77e05fe2
    • Chris Lattner's avatar
      switch the DomTreeNodes and IDoms maps in idom/postidom to a · bd0fe01d
      Chris Lattner authored
      DenseMap instead of an std::map.  This speeds up postdomtree
      by about 25% and domtree by about 23%.  It also speeds up clients,
      for example, domfrontier by 11%, mem2reg by 4% and ADCE by 6%.
      
      llvm-svn: 40826
      bd0fe01d
    • Chris Lattner's avatar
      rewrite the code used to construct pruned SSA form with the IDF method. · edce70d2
      Chris Lattner authored
      In the old way, we computed and inserted phi nodes for the whole IDF of 
      the definitions of the alloca, then computed which ones were dead and
      removed them.
      
      In the new method, we first compute the region where the value is live,
      and use that information to only insert phi nodes that are live.  This
      eliminates the need to compute liveness later, and stops the algorithm
      from inserting a bunch of phis which it then later removes.
      
      This speeds up the testcase in PR1432 from 2.00s to 0.15s (14x) in a
      release build and 6.84s->0.50s (14x) in a debug build.
      
      llvm-svn: 40825
      edce70d2
  2. Aug 04, 2007
  3. Aug 03, 2007
Loading