Skip to content
  1. Apr 06, 2013
  2. Apr 05, 2013
    • Bill Wendling's avatar
      Use the target options specified on a function to reset the back-end. · eb108bad
      Bill Wendling authored
      During LTO, the target options on functions within the same Module may
      change. This would necessitate resetting some of the back-end. Do this for X86,
      because it's a Friday afternoon.
      
      llvm-svn: 178917
      eb108bad
    • Hal Finkel's avatar
      Revert r178845 - Fix bug in PEI's virtual-register scavenging · 81c46d08
      Hal Finkel authored
      Reverting because this breaks one of the LTO builders. Original commit message:
      
          This change fixes a bug that I introduced in r178058. After a register is
          scavenged using one of the available spills slots the instruction defining the
          virtual register needs to be moved to after the spill code. The scavenger has
          already processed the defining instruction so that registers killed by that
          instruction are available for definition in that same instruction. Unfortunately,
          after this, the scavenger needs to iterate through the spill code and then
          visit, again, the instruction that defines the now-scavenged register. In order
          to avoid confusion, the register scavenger needs the ability to 'back up'
          through the spill code so that it can again process the instructions in the
          appropriate order. Prior to this fix, once the scavenger reached the
          just-moved instruction, it would assert if it killed any registers because,
          having already processed the instruction, it believed they were undefined.
      
          Unfortunately, I don't yet have a small test case. Thanks to Pranav Bhandarkar
          for diagnosing the problem and testing this fix.
      
      llvm-svn: 178916
      81c46d08
    • Jim Grosbach's avatar
      Tidy up a bit. No functional change. · bdbd7346
      Jim Grosbach authored
      llvm-svn: 178915
      bdbd7346
    • Michael J. Spencer's avatar
      Correctly pass ownership of MemoryBuffers. · ce1e53e1
      Michael J. Spencer authored
      llvm-svn: 178914
      ce1e53e1
    • Michael J. Spencer's avatar
      Fix uninitialized variables. Found by ubsan. · 096ea03f
      Michael J. Spencer authored
      llvm-svn: 178913
      096ea03f
    • Shuxin Yang's avatar
      Disable the optimization about promoting vector-element-access with symbolic index. · 95adf525
      Shuxin Yang authored
      This optimization is unstable at this moment; it 
        1) block us on a very important application
        2) PR15200
        3) test6 and test7 in test/Transforms/ScalarRepl/dynamic-vector-gep.ll
           (the CHECK command compare the output against wrong result)
      
         I personally believe this optimization should not have any impact on the
      autovectorized code, as auto-vectorizer is supposed to put gather/scatter
      in a "right" way.  Although in theory downstream optimizaters might reveal 
      some gather/scatter optimization opportunities, the chance is quite slim.
      
         For the hand-crafted vectorizing code, in term of redundancy elimination,
      load-CSE, copy-propagation and DSE can collectively achieve the same result,
      but in much simpler way. On the other hand, these optimizers are able to 
      improve the code in a incremental way; in contrast, SROA is sort of all-or-none
      approach. However, SROA might slighly win in stack size, as it tries to figure 
      out a stretch of memory tightenly cover the area accessed by the dynamic index.
      
       rdar://13174884
       PR15200
      
      llvm-svn: 178912
      95adf525
    • Argyrios Kyrtzidis's avatar
    • Akira Hatanaka's avatar
      [mips] XFAIL test-interp-vec-loadstore.ll in an attempt to turn builder · fac2db4a
      Akira Hatanaka authored
      llvm-mips-linux green.
      
      llvm-mips-linux runs on a big endian machine. This test passes if I change 'e'
      to 'E' in the target data layout string.
      
      llvm-svn: 178910
      fac2db4a
    • Douglas Gregor's avatar
      <rdar://problem/13551789> Fix a race in the LockFileManager. · 0cb68460
      Douglas Gregor authored
      It's possible for the lock file to disappear and the owning process to
      return before we're able to see the generated file. Spin for a little
      while to see if it shows up before failing. 
      
      llvm-svn: 178909
      0cb68460
    • Douglas Gregor's avatar
      <rdar://problem/13551789> Fix yet another race in unique_file. · 6bd4d8cf
      Douglas Gregor authored
      If the directory that will contain the unique file doesn't exist when
      we tried to create the file, but another process creates it before we
      get a chance to try creating it, we would bail out rather than try to
      create the unique file.
      
      llvm-svn: 178908
      6bd4d8cf
    • Ariel J. Bernal's avatar
      Fix UseNullptr fails to replace explict casts surrounded by another implicit · 005daf1b
      Ariel J. Bernal authored
      cast
      
      UseNullptr previously matched the implicit cast to const pointer as well as
      the explicit cast within that has an implicit cast to nullptr as a descendant.
      
      -Refactored UseNullptr to avoid special-casing certain kinds of cast sequences
      -Added test cases.
      
      llvm-svn: 178907
      005daf1b
Loading