Skip to content
  1. Feb 08, 2018
  2. Feb 07, 2018
    • Craig Topper's avatar
      [X86] Prune some unreachable 'return SDValue()' paths from... · 37765ff3
      Craig Topper authored
      [X86] Prune some unreachable 'return SDValue()' paths from LowerSIGN_EXTEND/LowerZERO_EXTEND/LowerANY_EXTEND.
      
      We were doing a lot of whitelisting of what we handle in these routines, but setOperationAction constrains what we can get here. So just add some asserts and prune the unreachable paths.
      
      llvm-svn: 324538
      37765ff3
    • Richard Smith's avatar
      PR36055: fix computation of *-dependence in nested initializer lists. · f3b4ca89
      Richard Smith authored
      When we synthesize an implicit inner initializer list when analyzing an outer
      initializer list, we add it to the outer list immediately, and then fill in the
      inner list. This gives the outer list no chance to update its *-dependence bits
      with those of the completed inner list. To fix this, re-add the inner list to
      the outer list once it's completed.
      
      Note that we do not recompute the *-dependence bits from scratch when we
      complete an outer list; this would give the wrong result for the case where a
      designated initializer overwrites a dependent initializer with a non-dependent
      one. The resulting list in that case should still be dependent, even though all
      traces of the dependence were removed from the semantic form.
      
      llvm-svn: 324537
      f3b4ca89
    • Craig Topper's avatar
      [X86] Remove dead code from EmitTest that looked for an i1 type which should... · 1db5ebc0
      Craig Topper authored
      [X86] Remove dead code from EmitTest that looked for an i1 type which should have already been type legalized away. NFC
      
      llvm-svn: 324536
      1db5ebc0
    • Rafael Espindola's avatar
      Recommit r324107 again. · 699f5d6b
      Rafael Espindola authored
      The difference from the previous try is that we no longer directly
      access function declarations from position independent executables. It
      should work, but currently doesn't with some linkers.
      
      It now includes a fix to not mark available_externally definitions as
      dso_local.
      
      Original message:
      
      Start setting dso_local in clang.
      
      This starts adding dso_local to clang.
      
      The hope is to eventually have TargetMachine::shouldAssumeDsoLocal go
      away. My objective for now is to move enough of it to clang to remove
      the need for the TargetMachine one to handle PIE copy relocations and
      -fno-plt. With that it should then be easy to implement a
      -fno-copy-reloc in clang.
      
      This patch just adds the cases where we assume a symbol to be local
      based on the file being compiled for an executable or a shared
      library.
      
      llvm-svn: 324535
      699f5d6b
    • Dan Albert's avatar
      Stop using __strtonum_fallback on Android. · 9bc04e98
      Dan Albert authored
      Fallback implementations are now provided by bionic when necessary,
      which these may conflict with.
      
      llvm-svn: 324534
      9bc04e98
    • Craig Topper's avatar
      [X86] When doing callee save/restore for k-registers make sure we don't use... · 8baa9c77
      Craig Topper authored
      [X86] When doing callee save/restore for k-registers make sure we don't use KMOVQ on non-BWI targets
      
      If we are saving/restoring k-registers, the default behavior of getMinimalRegisterClass will find the VK64 class with a spill size of 64 bits. This will cause the KMOVQ opcode to be used for save/restore. If we don't have have BWI instructions we need to constrain the class returned to give us VK16 with a 16-bit spill size. We can do this by passing the either v16i1 or v64i1 into getMinimalRegisterClass.
      
      Also add asserts to make sure BWI is enabled anytime we use KMOVD/KMOVQ. These are what caught this bug.
      
      Fixes PR36256
      
      Differential Revision: https://reviews.llvm.org/D42989
      
      llvm-svn: 324533
      8baa9c77
    • Marshall Clow's avatar
      Fix PR#31454 - 'basic_string<T>::push_back() crashes if sizeof(T)>sizeof(long... · fc940277
      Marshall Clow authored
      Fix PR#31454 - 'basic_string<T>::push_back() crashes if sizeof(T)>sizeof(long long)'. We were mishandling the small-string optimization calculations for very large 'characters'. This may be an ABI change (change the size of) strings of very large 'characters', but since they never worked, I'm not too concerned.
      
      llvm-svn: 324531
      fc940277
    • Craig Topper's avatar
      [X86] Auto-generate complete checks. NFC · ce26819f
      Craig Topper authored
      llvm-svn: 324530
      ce26819f
    • Eric Fiselier's avatar
      Fix -verify static assert messages for older Clang versions · ebf8a098
      Eric Fiselier authored
      llvm-svn: 324529
      ebf8a098
    • Ed Maste's avatar
      Document --build-id=fast in ld.lld.1 · 421fdaa1
      Ed Maste authored
      Initial ld.lld.1 man page commit in r324512 crossed paths with r324502
      which added --build-id=fast, allowing --build-id to be documented as a
      synonym for --build-id=fast. Catch up with that change in the man page.
      
      Differential Revision:	https://reviews.llvm.org/D43039
      
      llvm-svn: 324528
      421fdaa1
Loading