Skip to content
  1. Apr 16, 2012
  2. Apr 15, 2012
  3. Apr 14, 2012
  4. Apr 13, 2012
  5. Apr 12, 2012
  6. Apr 11, 2012
  7. Apr 10, 2012
  8. Apr 09, 2012
  9. Apr 08, 2012
    • Chandler Carruth's avatar
      Teach LLVM about a PIE option which, when enabled on top of PIC, makes · ede4a8aa
      Chandler Carruth authored
      optimizations which are valid for position independent code being linked
      into a single executable, but not for such code being linked into
      a shared library.
      
      I discussed the design of this with Eric Christopher, and the decision
      was to support an optional bit rather than a completely separate
      relocation model. Fundamentally, this is still PIC relocation, its just
      that certain optimizations are only valid under a PIC relocation model
      when the resulting code won't be in a shared library. The simplest path
      to here is to expose a single bit option in the TargetOptions. If folks
      have different/better designs, I'm all ears. =]
      
      I've included the first optimization based upon this: changing TLS
      models to the *Exec models when PIE is enabled. This is the LLVM
      component of PR12380 and is all of the hard work.
      
      llvm-svn: 154294
      ede4a8aa
    • Chandler Carruth's avatar
      Move the TLSModel information into the TargetMachine rather than hiding · 16f0ebcb
      Chandler Carruth authored
      in TargetLowering. There was already a FIXME about this location being
      odd. The interface is simplified as a consequence. This will also make
      it easier to change TLS models when compiling with PIE.
      
      llvm-svn: 154292
      16f0ebcb
    • Bill Wendling's avatar
      Allow subclasses of the ValueHandleBase to store information as part of the · 9b2503a0
      Bill Wendling authored
      value pointer by making the value pointer into a pointer-int pair with 2 bits
      available for flags.
      
      llvm-svn: 154279
      9b2503a0
  10. Apr 07, 2012
    • Chandler Carruth's avatar
      Perform partial SROA on the helper hashing structure. I really wish the · 75a1cf32
      Chandler Carruth authored
      optimizers could do this for us, but expecting partial SROA of classes
      with template methods through cloning is probably expecting too much
      heroics. With this change, the begin/end pointer pairs which indicate
      the status of each loop iteration are actually passed directly into each
      layer of the combine_data calls, and the inliner has a chance to see
      when most of the combine_data function could be deleted by inlining.
      Similarly for 'length'.
      
      We have to be careful to limit the places where in/out reference
      parameters are used as those will also defeat the inliner / optimizers
      from properly propagating constants.
      
      With this change, LLVM is able to fully inline and unroll the hash
      computation of small sets of values, such as two or three pointers.
      These now decompose into essentially straight-line code with no loops or
      function calls.
      
      There is still one code quality problem to be solved with the hashing --
      LLVM is failing to nuke the alloca. It removes all loads from the
      alloca, leaving only lifetime intrinsics and dead(!!) stores to the
      alloca. =/ Very unfortunate.
      
      llvm-svn: 154264
      75a1cf32
Loading