1. May 08, 2017
    • Craig Topper's avatar
      [ConstantRange] Remove 'Of' from name of... · d29549e9
      Craig Topper authored
      [ConstantRange] Remove 'Of' from name of ConstantRange::isSizeStrictlySmallerThanOf so that it reads better. NFC
      
      llvm-svn: 302383
      d29549e9
    • Eric Fiselier's avatar
      Fix Windows test failures caused by identical temp file names. · ea9dc4ae
      Eric Fiselier authored
      This patch fixes test failures that occur on Windows because
      the tests attempt to generate two distinct temp file names but
      get the same name both time.
      
      The fix for this is to create the first temp file before requesting
      a second temporary file name. This ensures that the second name
      will be unique.
      
      llvm-svn: 302382
      ea9dc4ae
    • Eric Fiselier's avatar
      Accept Windows specific output in system error tests · 07c955c6
      Eric Fiselier authored
      llvm-svn: 302381
      07c955c6
    • Eric Fiselier's avatar
      Fix two test failures caused by Windows mangling of function types. · fc353da2
      Eric Fiselier authored
      On Windows the function template `template <class T> void test()` has
      the same mangled name when instantiated with the distinct types `void()`
      and `void() noexcept`. When this occurs Clang emits an error. This error
      was causing two type-traits tests to fail.
      
      However this can be worked around by using class templates instead of
      function templates, which is what this patch does to fix the errors.
      
      llvm-svn: 302380
      fc353da2
    • Siddharth Bhat's avatar
      [Polly] Added OpenCL Runtime to GPURuntime Library for GPGPU CodeGen · 17f01968
      Siddharth Bhat authored
      Summary:
      When compiling for GPU, one can now choose to compile for OpenCL or CUDA,
      with the corresponding polly-gpu-runtime flag (libopencl / libcudart). The
      GPURuntime library (GPUJIT) has been extended with the OpenCL Runtime library
      for that purpose, correctly choosing the corresponding library calls to the
      option chosen when compiling (via different initialization calls).
      
      Additionally, a specific GPU Target architecture can now be chosen with -polly-gpu-arch (only nvptx64 implemented thus far).
      
      Reviewers: grosser, bollu, Meinersbur, etherzhhb, singam-sanjay
      
      Reviewed By: grosser, Meinersbur
      
      Subscribers: singam-sanjay, llvm-commits, pollydev, nemanjai, mgorny, yaxunl, Anastasia
      
      Tags: #polly
      
      Differential Revision: https://reviews.llvm.org/D32431
      
      llvm-svn: 302379
      17f01968
    • Simon Pilgrim's avatar
      [X86][AVX1] Improve 256-bit vector costs for integer unary intrinsics. · 2d1c6d6e
      Simon Pilgrim authored
      Account for subvector extraction/insertion, helps prevent the vectorizers from selecting 256-bit vectors that will have to be split anyhow on AVX1 targets. 
      
      llvm-svn: 302378
      2d1c6d6e
    • Lang Hames's avatar
      [Orc] Remove trailing whitespace. · e52c61bf
      Lang Hames authored
      llvm-svn: 302377
      e52c61bf
    • Siddharth Bhat's avatar
      [Polly] [GPUJIT] Adapted argument capitalization to fit standard · 5cf77125
      Siddharth Bhat authored
      Summary: Function argument naming changed to reflect capitalization standards.
      
      Reviewers: grosser, Meinersbur
      
      Reviewed By: grosser
      
      Differential Revision: https://reviews.llvm.org/D32854
      
      llvm-svn: 302376
      5cf77125
    • Siddharth Bhat's avatar
      [Polly] [GPUJIT] Moved error prints to stderr · 448b8079
      Siddharth Bhat authored
      Summary: Errors previously printed to stdout now get printed to stderr.
      
      Reviewers: grosser, Meinersbur
      
      Reviewed By: grosser
      
      Differential Revision: https://reviews.llvm.org/D32852
      
      llvm-svn: 302375
      448b8079
    • Sanjay Patel's avatar
      [InstSimplify] add tests for PR32949 miscompile; NFC · 390f1dc6
      Sanjay Patel authored
      llvm-svn: 302374
      390f1dc6
    • Zvi Rackover's avatar
      InstructionSimplify: Relanding r301766 · 973ff7c7
      Zvi Rackover authored
      Summary:
      Re-applying r301766 with a fix to a typo and a regression test.
      
      The log message for r301766 was:
      ==================================================================================
          InstructionSimplify: Canonicalize shuffle operands. NFC-ish.
      
          Summary:
           Apply canonicalization rules:
              1. Input vectors with no elements selected from can be replaced with undef.
              2. If only one input vector is constant it shall be the second one.
      
          This allows constant-folding to cover more ad-hoc simplifications that
          were in place and avoid duplication for RHS and LHS checks.
      
          There are more rules we may want to add in the future when we see a
          justification. e.g. mask elements that select undef elements can be
          replaced with undef.
      ==================================================================================
      
      Reviewers: spatel, RKSimon
      
      Reviewed By: spatel
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D32863
      
      llvm-svn: 302373
      973ff7c7
    • Lang Hames's avatar
      Make llvm-rtdlyd -check preserve automatic address mappings made by RuntimeDyld. · ff41150d
      Lang Hames authored
      Currently llvm-rtdyld in -check mode will map sections to back-to-back 4k
      aligned slabs starting at 0x1000. Automatically remapping sections by default is
      helpful because it quickly exposes relocation bugs due to use of local addresses
      rather than load addresses (these would silently pass if the load address was
      not remapped). These mappings can be explicitly overridden on a per-section
      basis using llvm-rtdlyd's -map-section option. This patch extends this scheme to
      also preserve any mappings made by RuntimeDyld itself. Preserving RuntimeDyld's
      automatic mappings allows us to write test cases to verify that these automatic
      mappings have been applied.
      
      This will allow the fix in https://reviews.llvm.org/D32899 to be tested with
      llvm-rtdyld -check.
      
      llvm-svn: 302372
      ff41150d
    • Craig Topper's avatar
      [SCEV] Use move semantics in ScalarEvolution::setRange · 252682a4
      Craig Topper authored
      Summary: This makes setRange take ConstantRange by rvalue reference since most callers were passing an unnamed temporary ConstantRange. We can then move that ConstantRange into the DenseMap caches. For the callers that weren't passing a temporary, I've added std::move to to the local variable being passed.
      
      Reviewers: sanjoy, mzolotukhin, efriedma
      
      Reviewed By: sanjoy
      
      Subscribers: takuto.ikuta, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D32943
      
      llvm-svn: 302371
      252682a4
  2. May 07, 2017
  3. May 06, 2017