1. Jul 02, 2018
  2. Jul 01, 2018
    • Sanjay Patel's avatar
      [PatternMatch] allow undef elements in vectors with m_Neg · a9fdb9fd
      Sanjay Patel authored
      This is similar to the m_Not change from D44076.
      
      llvm-svn: 336064
      a9fdb9fd
    • Simon Pilgrim's avatar
      [SLPVectorizer] Use InstructionsState Op/Alt opcodes directly. NFCI. · 77d20676
      Simon Pilgrim authored
      llvm-svn: 336063
      77d20676
    • David Green's avatar
      [UnrollAndJam] New Unroll and Jam pass · 963401d2
      David Green authored
      This is a simple implementation of the unroll-and-jam classical loop
      optimisation.
      
      The basic idea is that we take an outer loop of the form:
      
        for i..
          ForeBlocks(i)
          for j..
            SubLoopBlocks(i, j)
          AftBlocks(i)
      
      Instead of doing normal inner or outer unrolling, we unroll as follows:
      
        for i... i+=2
          ForeBlocks(i)
          ForeBlocks(i+1)
          for j..
            SubLoopBlocks(i, j)
            SubLoopBlocks(i+1, j)
          AftBlocks(i)
          AftBlocks(i+1)
        Remainder Loop
      
      So we have unrolled the outer loop, then jammed the two inner loops into
      one. This can lead to a simpler inner loop if memory accesses can be shared
      between the now jammed loops.
      
      To do this we have to prove that this is all safe, both for the memory
      accesses (using dependence analysis) and that ForeBlocks(i+1) can move before
      AftBlocks(i) and SubLoopBlocks(i, j).
      
      Differential Revision: https://reviews.llvm.org/D41953
      
      llvm-svn: 336062
      963401d2
    • Paul Semel's avatar
      Revert "[llvm-readobj] Fix printing format" · 8dabda70
      Paul Semel authored
      There is a problem with the formatting on windows build.
      I need to investigate on this.
      
      llvm-svn: 336061
      8dabda70
    • Simon Pilgrim's avatar
      [SLPVectorizer][X86] Add some alternate tests for cast operators · 84f77ecb
      Simon Pilgrim authored
      Alternate opcode handling only supports binary operators, these tests demonstrate missed opportunities to vectorize some sitofp/uitofp and fptosi/fptoui style casts as well as some (successful) float bits manipulations
      
      llvm-svn: 336060
      84f77ecb
    • Eugene Leviant's avatar
      [Evaluator] Improve evaluation of call instruction · 6e413445
      Eugene Leviant authored
      Recommit of r335324 after buildbot failure fix
      
      llvm-svn: 336059
      6e413445
    • Paul Semel's avatar
      [llvm-readobj] Fix printing format · 49997adc
      Paul Semel authored
      We were printing every character, even those that weren't printable. It
      doesn't really make sense for this option.
      
      The string content was sticked to its address, added two spaces in
      between.
      
      Differential Revision: https://reviews.llvm.org/D48271
      
      llvm-svn: 336058
      49997adc
    • Craig Topper's avatar
      [X86] Remove unnecessary include. NFC · a2d30b31
      Craig Topper authored
      Leftover from when the pass contained a DenseMap before it switched to binary search.
      
      llvm-svn: 336057
      a2d30b31
    • Craig Topper's avatar
      [X86] Move the memory unfolding table creation into its own class and make it a ManagedStatic. · 4e78213a
      Craig Topper authored
      Also move the static folding tables, their search functions and the new class into new cpp/h files.
      
      The unfolding table is effectively static data. It's just a different ordering and a subset of the static folding tables.
      
      By putting it in a separate ManagedStatic we ensure we only have one copy instead of one per X86InstrInfo object. This way also makes it only get initialized when really needed.
      
      llvm-svn: 336056
      4e78213a
    • Craig Topper's avatar
      [X86] Move the X86InstrFMA3Info class into the cpp file. Expose only a... · 84199deb
      Craig Topper authored
      [X86] Move the X86InstrFMA3Info class into the cpp file. Expose only a getFMA3Group free function. NFCI
      
      The class only exists to hold a DenseMap and is only created as a ManagedStatic. It used to expose a single static method that outside code was expected to use.
      
      This patch moves that static function out of the class and moves it implementation into the cpp file. It can now access the ManagedStatic directly by name without the need for the other static method that accessed the ManagedStatic.
      
      llvm-svn: 336055
      84199deb
    • Craig Topper's avatar
      [X86] Remove the AsmName from the HAX,HDX,HCX,HBX,HSI,HDI,HBP,HSP,HIP... · 73174074
      Craig Topper authored
      [X86] Remove the AsmName from the HAX,HDX,HCX,HBX,HSI,HDI,HBP,HSP,HIP artificial registers so they can't be parsed by the assembly parser.
      
      There are no instructions that use them so they weren't causing any bad matches. But they weren't being diagnosed as "invalid register name" if they were used and would instead trigger some form of invalid operand.
      
      llvm-svn: 336054
      73174074
    • David Carlier's avatar
      [UBsan] Enable subset of unit tests for OpenBSD · c33f35ff
      David Carlier authored
      Reviewers: kubamracek, krytarowski
      
      Reviewed By: krytarowski
      
      Differential Revision: https://reviews.llvm.org/D48805
      
      llvm-svn: 336053
      c33f35ff
    • Craig Topper's avatar
      [X86] Use MVT::i8 for scalar shift amounts since that is what they ultimately need to legalize to. · 1b7b9b85
      Craig Topper authored
      I believe all of these are constants so legalizing them should be pretty trivial, but this saves a step.
      
      In one case it looks like we may have been creating a shift amount larger than the shift input itself.
      
      llvm-svn: 336052
      1b7b9b85
    • Craig Topper's avatar
      [X86] When combining load to BZHI, make sure we create the shift instruction with an i8 type. · 5f28d50d
      Craig Topper authored
      This combine runs pretty late and causes us to introduce a shift after the op legalization phase has run. We need to be sure we create the shift with the proper type for the shift amount. If we don't do this, we will still re-legalize the operation properly, but we won't get a chance to fully optimize the truncate that gets inserted.
      
      So this patch adds the necessary truncate when the shift is created. I've also narrowed the subtract that gets created to always be an i32 type. The truncate would have trigered SimplifyDemandedBits to optimize it anyway. But using a more appropriate VT here is free and saves an optimization step.
      
      llvm-svn: 336051
      5f28d50d
  3. Jun 30, 2018