1. Nov 14, 2016
    • Tobias Grosser's avatar
      [ScopDetect] Conservatively handle inaccessible memory alias attributes · 70d2709b
      Tobias Grosser authored
      Commit r286294 introduced support for inaccessiblememonly and
      inaccessiblemem_or_argmemonly attributes to BasicAA, which we need to
      support to avoid undefined behavior. This change just refuses all calls
      which are annotated with these attributes, which is conservatively correct.
      In the future we may consider to model and support such function calls
      in Polly.
      
      llvm-svn: 286771
      70d2709b
    • Tobias Grosser's avatar
      [tests] Adjust test output to recent changed SCEV canonocalization [NFC] · a9cac6a7
      Tobias Grosser authored
      LLVM recently changed the SCEV canonicalization which changed the output of
      one of our GPGPU test cases.
      
      llvm-svn: 286770
      a9cac6a7
    • Tobias Grosser's avatar
      [ScopDetect] Evaluate and verify branches at branch condition, not icmp · a2f8fa33
      Tobias Grosser authored
      The validity of a branch condition must be verified at the location of the
      branch (the branch instruction), not the location of the icmp that is
      used in the branch instruction. When verifying at the wrong location, we
      may accept an icmp that is defined within a loop which itself dominates, but
      does not contain the branch instruction. Such loops cannot be modeled as
      we only introduce domain dimensions for surrounding loops. To address this
      problem we change the scop detection to evaluate and verify SCEV expressions at
      the right location.
      
      This issue has been around since at least r179148 "scop detection: properly
      instantiate SCEVs to the place where they are used", where we explicitly
      set the scope to the wrong location. Before this commit the scope
      was not explicitly set, which probably also resulted in the scope around the
      ICmp to be choosen.
      
      This resolves http://llvm.org/PR30989
      
      
      
      Reported-by: default avatarEli Friedman <efriedma@codeaurora.org>
      llvm-svn: 286769
      a2f8fa33
    • Craig Topper's avatar
      [X86][IR] Reduce the number of full string comparisons in the code that... · 987dad2b
      Craig Topper authored
      [X86][IR] Reduce the number of full string comparisons in the code that autoupgrades masked shift intrinsics.
      
      llvm-svn: 286768
      987dad2b
    • Saleem Abdulrasool's avatar
      llvm-strings: support printing the filename · 8b9be8fd
      Saleem Abdulrasool authored
      This adds support for the `-f` or `--print-file-name` option for strings.
      
      llvm-svn: 286767
      8b9be8fd
    • Matt Arsenault's avatar
      AMDGPU: Implement SGPR spilling with scalar stores · dc45274d
      Matt Arsenault authored
      nThis avoids the nasty problems caused by using
      memory instructions that read the exec mask while
      spilling / restoring registers used for control flow
      masking, but only for VI when these were added.
      
      This always uses the scalar stores when enabled currently,
      but it may be better to still try to spill to a VGPR
      and use this on the fallback memory path.
      
      The cache also needs to be flushed before wave termination
      if a scalar store is used.
      
      llvm-svn: 286766
      dc45274d
  2. Nov 13, 2016