1. Dec 21, 2015
  2. Dec 20, 2015
    • Michael Kruse's avatar
      Compile fix: Use "&&" operator instead of "and" · 8fc2896e
      Michael Kruse authored
      llvm-svn: 256124
      8fc2896e
    • Tobias Grosser's avatar
      ScopInfo: Bail out in case of complex branch structures · 75dc40c3
      Tobias Grosser authored
      Scops that contain many complex branches are likely to result in complex domain
      conditions that consist of a large (> 100) number of conjucts.  Transforming
      such domains is expensive and unlikely to result in efficient code.  To avoid
      long compile times we detect this case and skip such scops. In the future we may
      improve this by either using non-affine subregions to hide such complex
      condition structures or by exploiting in certain cases properties (e.g.,
      dominance) that allow us to construct the domains of a scop in a way that
      results in a smaller number improving conjuncts.
      
      Example of a code that results in complex iteration spaces:
      
            loop.header
           /    |    \ \
         A0    A2    A4 \
           \  /  \  /    \
            A1    A3      \
           /  \  /  \     |
         B0    B2    B4   |
           \  /  \  /     |
            B1    B3      ^
           /  \  /  \     |
         C0    C2    C4   |
           \  /  \  /    /
            C1    C3    /
             \   /     /
          loop backedge
      
      llvm-svn: 256123
      75dc40c3
    • Michael Kuperstein's avatar
      [X86] Add missing m64/int64 conversions · 591278c0
      Michael Kuperstein authored
      Define the 64-bit equivalents of _m_to_int and _m_from_int.
      
      Differential Revision: http://reviews.llvm.org/D15572
      
      llvm-svn: 256122
      591278c0
    • Michael Kuperstein's avatar
      [X86] Add signed aliases for popcnt intrinsics · beae0267
      Michael Kuperstein authored
      The Intel manual documents both an unsigned form (_mm_popcnt_u32)
      and a signed form (_popcnt32) of the intrinsic. Add the missing signed form.
      
      Differential Revision: http://reviews.llvm.org/D15568
      
      llvm-svn: 256121
      beae0267
    • Dylan McKay's avatar
      Add AVR.td and AVRRegisterInfo.td · 029346f4
      Dylan McKay authored
      Summary:
      This adds the core AVR TableGen file, along with the register descriptions.
      
      Lines in AVR.td which require other TableGen files which haven't been committed
      yet are commented out.
      
      This is a fairly trivial patch, and should only require a quick review.
      
      I kept the line width smaller than 80 columns, but there are a few exceptions
      because I'm not sure how to split a string over several lines.
      
      Reviewers: stoklund
      
      Subscribers: dylanmckay, agnat
      
      Differential Revision: http://reviews.llvm.org/D14684
      
      llvm-svn: 256120
      029346f4
    • Simon Atanasyan's avatar
      [ELF][MIPS] MIPS .reginfo sections handling · 1d7df407
      Simon Atanasyan authored
      MIPS .reginfo section provides information on the registers used by
      the code in the object file. Linker should collect this information and
      write .reginfo section in the output file. This section contains a union
      of used registers masks taken from input .reginfo sections and final
      value of the `_gp` symbol.
      
      For details see the "Register Information" section in Chapter 4 in the
      following document:
      ftp://www.linux-mips.org/pub/linux/mips/doc/ABI/mipsabi.pdf
      
      The patch implements .reginfo sections handling with a couple missed
      features: a) it does not put output .reginfo section into the separate
      REGINFO segment; b) it does not merge `ri_cprmask` masks from input
      section. These features will be implemented later.
      
      Differential Revision: http://reviews.llvm.org/D15669
      
      llvm-svn: 256119
      1d7df407
    • Davide Italiano's avatar
      [llvm-objdump] Move COFF function to where it belongs. · e85abf72
      Davide Italiano authored
      Ideally much more stuff should be moved out of llvm-objdump.cpp, but that
      will happen later.
      
      llvm-svn: 256118
      e85abf72
    • Xinliang David Li's avatar
      Fix a bug in test case -- duplicate entries · 242ad0ad
      Xinliang David Li authored
      llvm-svn: 256117
      242ad0ad
    • Xinliang David Li's avatar
      Fix a latent UAF bug in profwriter · 60057288
      Xinliang David Li authored
      llvm-svn: 256116
      60057288
    • Weiming Zhao's avatar
      Fix mapping of @llvm.arm.ssat/usat intrinsics to ssat/usat instructions for Thumb2 · 613c6862
      Weiming Zhao authored
      Summary:
      r250697 fixed the mapping for ARM mode. We have to do the same for Thumb2 otherwise the same llvm.arm.ssat() will generate different saturating amount for ARM and Thumb.
      
      r250697: http://reviews.llvm.org/rL250697
      
      Reviewers: rmaprath
      
      Subscribers: aemerson, llvm-commits, rengolin
      
      Differential Revision: http://reviews.llvm.org/D15653
      
      llvm-svn: 256115
      613c6862
    • Xinliang David Li's avatar
      [PGO] Improve Indexed Profile Reader efficiency · a716cc5c
      Xinliang David Li authored
      With the support of value profiling added, the Indexed prof
      reader gets less efficient. The prof reader initialization
      used to be just reading the file header, but with VP support
      added, initialization needs to walk through all profile keys
      of ondisk hash table resulting in very poor locality and large
      memory increase (keys are stored together with the profile data
      in the mapped profile buffer). Even worse, when the reader is 
      used by the compiler (not llvm-profdata too), the penalty becomes
      very high as compilation of each single module requires touching
      profile data buffer for the whole program. 
      
      In this patch, the icall target values (MD5hash) are no longer eargerly 
      converted back to name strings when the data is read into memory. New
      interface is added to to profile reader so that InstrProfSymtab can be
      lazily created for Indexed profile reader on-demand. Creating of the 
      symtab is intended to be used by llvm-profdata tool for symbolic dumping
      of  VP data. It can be used with compiler (for legacy out of tree uses)
      too but not recommended due to compile time and memory reasons 
      mentioned above.
      
      Some other cleanups are also included: Function Addr to md5 map is now
      consolated into InstrProfSymtab. InstrProfStringtab is no longer used and
      eliminated.
      
      llvm-svn: 256114
      a716cc5c