1. Jun 06, 2018
  2. Jun 05, 2018
    • Simon Pilgrim's avatar
      [X86][SSE] Use multiplication scale factors for v8i16 SHL on pre-AVX2 targets. · f2f043ac
      Simon Pilgrim authored
      Similar to v4i32 SHL, convert v8i16 shift amounts to scale factors instead to improve performance and reduce instruction count. We were already doing this for constant shifts, this adds variable shift support.
      
      Reduces the serial nature of the codegen, which relies on chains of plendvb/pand+pandn+por shifts.
      
      This is a step towards adding support for vXi16 vector rotates.
      
      Differential Revision: https://reviews.llvm.org/D47546
      
      llvm-svn: 334023
      f2f043ac
    • Nirav Dave's avatar
      [MC][X86] Allow assembler variable assignment to register name. · 05b58910
      Nirav Dave authored
      Summary:
      Allow extended parsing of variable assembler assignment syntax and modify X86 to permit
      VAR = register assignment. As we emit these as .set directives when possible, we inline
      such expressions in output assembly.
      
      Fixes PR37425.
      
      Reviewers: rnk, void, echristo
      
      Reviewed By: rnk
      
      Subscribers: nickdesaulniers, llvm-commits, hiraditya
      
      Differential Revision: https://reviews.llvm.org/D47545
      
      llvm-svn: 334022
      05b58910
    • Yaxun Liu's avatar
      [CUDA][HIP] Do not emit type info when compiling for device · 6328f9a9
      Yaxun Liu authored
      CUDA/HIP does not support RTTI on device side, therefore there
      is no point of emitting type info when compiling for device.
      
      Emitting type info for device not only clutters the IR with useless
      global variables, but also causes undefined symbol at linking
      since vtable for cxxabiv1::class_type_info has external linkage.
      
      Differential Revision: https://reviews.llvm.org/D47694
      
      llvm-svn: 334021
      6328f9a9
    • Matt Arsenault's avatar
      DAG: Stop dropping invariant/dereferencable · 191bc715
      Matt Arsenault authored
      When legalizing illegal FP load results, this was
      for some reason dropping the invariant and dereferencable
      memory flags. There doesn't seem to be any reason for this,
      and the equivalent isn't done for integer loads.
      
      Fixes an issue in a future AMDGPU commit where some identical
      loads fail to merge because one of the loads ends up
      dropping the flags.
      
      llvm-svn: 334020
      191bc715
    • John Brawn's avatar
      [InstCombine] Correct the cmp operand type used when canonicalizing abs/nabs · e4ff0bd4
      John Brawn authored
      When adjusting a cmp in order to canonicalize an abs/nabs select pattern we need
      to use the type of the existing operand when creating a new operand not the
      type of a select operand, as the two may be different.
      
      This fixes PR37686.
      
      llvm-svn: 334019
      e4ff0bd4
    • Marc-Andre Laperle's avatar
      [clangd] Remove unused variables · d41bc700
      Marc-Andre Laperle authored
      Summary: Signed-off-by: Marc-Andre Laperle <marc-andre.laperle@ericsson.com>
      
      Subscribers: klimek, ilya-biryukov, ioeric, MaskRay, jkorous, cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D47737
      
      llvm-svn: 334018
      d41bc700
    • Marc-Andre Laperle's avatar
      [clangd] Add "member" symbols to the index · 945b5a3d
      Marc-Andre Laperle authored
      
      
      Summary:
      This adds more symbols to the index:
      - member variables and functions
      - enum constants in scoped enums
      
      The code completion behavior should remain intact but workspace symbols should
      now provide much more useful symbols.
      Other symbols should be considered such as the ones in "main files" (files not
      being included) but this can be done separately as this introduces its fair
      share of problems.
      
      Signed-off-by: default avatarMarc-Andre Laperle <marc-andre.laperle@ericsson.com>
      
      Reviewers: ioeric, sammccall
      
      Reviewed By: ioeric, sammccall
      
      Subscribers: hokein, sammccall, jkorous, klimek, ilya-biryukov, jkorous-apple, ioeric, MaskRay, cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D44954
      
      llvm-svn: 334017
      945b5a3d
    • Gabor Buella's avatar
      [X86] NFC Fix typo introduced in r328016 HSI->HDI · 1181f94a
      Gabor Buella authored
      llvm-svn: 334016
      1181f94a
    • Krzysztof Parzyszek's avatar
      [Hexagon] Minor cleanups in isel lowering · aafb8c20
      Krzysztof Parzyszek authored
      llvm-svn: 334015
      aafb8c20
    • Sam McCall's avatar
      [clangd] Test tweaks (consistency, shorter, doc). NFC · db41e1c6
      Sam McCall authored
      llvm-svn: 334014
      db41e1c6
    • Aaron Ballman's avatar
      Silence a "truncation from double to float" diagnostic in MSVC; NFC. · b1403fa0
      Aaron Ballman authored
      llvm-svn: 334013
      b1403fa0
    • Pavel Labath's avatar
      DWARFIndex: more GetFunctions cleanup · 6de9c79e
      Pavel Labath authored
      This applies similar simplification as r334004, only it touches the
      regex version of the method.
      
      llvm-svn: 334012
      6de9c79e
    • Hiroshi Inoue's avatar
      [PowerPC] reduce rotate in BitPermutationSelector · 955655f5
      Hiroshi Inoue authored
      BitPermutationSelector builds the output value by repeating rotate-and-mask instructions with input registers.
      Here, we may avoid one rotate instruction if we start building from an input register that does not require rotation.
      
      For example of the test case bitfieldinsert.ll, it first rotates left r4 by 8 bits and then inserts some bits from r5 without rotation.
      This can be executed by one rlwimi instruction, which rotates r4 by 8 bits and inserts its bits into r5.
      
      This patch adds a check for rotation amounts in the comparator used in sorting to process the input without rotation first.
      
      Differential Revision: https://reviews.llvm.org/D47765
      
      llvm-svn: 334011
      955655f5
    • Simon Pilgrim's avatar
      [X86][SSE] Fix line endings for shuffle-vs-trunc tests. NFCI. · 613fea20
      Simon Pilgrim authored
      Strip native eol property which we don't use in this folder.
      
      llvm-svn: 334010
      613fea20
    • Pavel Labath's avatar
      dotest: make inline tests compatible with -f · 66377385
      Pavel Labath authored
      Summary:
      This is split off from D47265 where I needed to be able to invoke every test
      with -f. That patch is kinda dead now, but this part seems like a good
      cleanup anyway.
      
      The problem with inline tests was in the way we were adding methods to
      the class, which left them with an incorrect __name__ property. This
      prevented dotest from finding them with -f.
      
      I fix this with (what I think is) the correct way of dynamically
      creating classes -- passing the list of methods during type construction
      instead of fixing up the class afterwards. Among other things this has
      the advantage of not needing to do anything special for debug info
      variants. As our test method will be visible to the metaclass, it will
      automagically do the multiplication for us.
      
      Reviewers: JDevlieghere, aprantl, tberghammer
      
      Subscribers: eraman, lldb-commits
      
      Differential Revision: https://reviews.llvm.org/D47579
      
      llvm-svn: 334009
      66377385
    • Clement Courbet's avatar
      [llvm-exegesis] Add instructions to BenchmarkResult Key. · 53d35d2d
      Clement Courbet authored
      We want llvm-exegesis to explore instructions (effect of initial register values, effect of operand selection). To enable this a BenchmarkResult muststore all the relevant data in its key. This patch starts adding such data. Here we simply allow to store the generated instructions, following patches will add operands and initial values for registers.
      
      https://reviews.llvm.org/D47764
      
      Authored by: Guilluame Chatelet
      
      llvm-svn: 334008
      53d35d2d
    • Simon Pilgrim's avatar
      [X86][SSE] Add target shuffle support to X86TargetLowering::computeKnownBitsForTargetNode · fef9b6ee
      Simon Pilgrim authored
      Ideally we'd use resolveTargetShuffleInputs to handle faux shuffles as well but:
      (a) that code path doesn't handle general/pre-legalized ops/types very well.
      (b) I'm concerned about the compute time as they recurse to calls to computeKnownBits/ComputeNumSignBits which would need depth limiting somehow.
      
      llvm-svn: 334007
      fef9b6ee