1. Jun 27, 2017
  2. Jun 26, 2017
    • Tom Stellard's avatar
      AMDGPU/GlobalISel: Mark 32-bit G_SHL as legal · eb8f1e27
      Tom Stellard authored
      Reviewers: arsenm
      
      Reviewed By: arsenm
      
      Subscribers: kzhuravl, wdng, nhaehnle, yaxunl, rovka, kristof.beyls, igorb, dstuttard, tpr, t-tye, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D34589
      
      llvm-svn: 306298
      eb8f1e27
    • Marina Yatsina's avatar
      [inline asm][gcc-compatiblity] "=i" output constraint support · 33eb7752
      Marina Yatsina authored
      Ignore ‘i’,’n’,’E’,’F’ as output constraints in inline assembly (gcc compatibility)
      
      Differential Revision: https://reviews.llvm.org/D31383
      
      llvm-svn: 306297
      33eb7752
    • Simon Pilgrim's avatar
      [X86] Add test case for PR15981 · 0ad0e580
      Simon Pilgrim authored
      llvm-svn: 306296
      0ad0e580
    • Rui Ueyama's avatar
      Remove a stale comment. · fb02869b
      Rui Ueyama authored
      llvm-svn: 306295
      fb02869b
    • Simon Pilgrim's avatar
      e77df9bc
    • Reid Kleckner's avatar
      [COFF] Improve synthetic symbol handling · 502d4ce2
      Reid Kleckner authored
      Summary:
      The main change is that we can have SECREL and SECTION relocations
      against ___safe_se_handler_table, which is important for handling the
      debug info in the MSVCRT.
      
      Previously we were using DefinedRelative for __safe_se_handler_table and
      __ImageBase, and after we implement CFGuard, we plan to extend it to
      handle __guard_fids_table, __guard_longjmp_table, and more.  However,
      DefinedRelative is really only suitable for implementing __ImageBase,
      because it lacks a Chunk, which you need in order to figure out the
      output section index and output section offset when resolving SECREl and
      SECTION relocations.
      
      This change renames DefinedRelative to DefinedSynthetic and gives it a
      Chunk. One wart is that __ImageBase doesn't have a chunk. It points to
      the PE header, effectively. We could split DefinedRelative and
      DefinedSynthetic if we think that's cleaner and creates fewer special
      cases.
      
      I also added safeseh.s, which checks that we don't emit a safe seh table
      entries pointing to garbage collected handlers and that we don't emit a
      table at all when there are no handlers.
      
      Reviewers: ruiu
      
      Reviewed By: ruiu
      
      Subscribers: inglorion, pcc, llvm-commits, aprantl
      
      Differential Revision: https://reviews.llvm.org/D34577
      
      llvm-svn: 306293
      502d4ce2
    • Rui Ueyama's avatar
      Add GlobalOffsetTable to ElfSym. NFC. · 92c37819
      Rui Ueyama authored
      Most "reserved" symbols are in ElfSym and it looks like there's no
      reason to not do the same thing for _GLOBAL_OFFSET_TABLE_. This should
      help https://reviews.llvm.org/D34618 too.
      
      llvm-svn: 306292
      92c37819
    • Axel Naumann's avatar
      Improve const-correctness. · 19520027
      Axel Naumann authored
      llvm-svn: 306291
      19520027
    • Siddharth Bhat's avatar
      [PPCGCodeGeneration] Add flag to allow polly to fail in GPU kernel fails. · 65d7f72f
      Siddharth Bhat authored
      - This is useful for debugging GPU code.
      
      llvm-svn: 306290
      65d7f72f
    • Sanjay Patel's avatar
      [x86] transform vector inc/dec to use -1 constant (PR33483) · 15748d23
      Sanjay Patel authored
      Convert vector increment or decrement to sub/add with an all-ones constant:
      
      add X, <1, 1...> --> sub X, <-1, -1...>
      sub X, <1, 1...> --> add X, <-1, -1...>
      
      The all-ones vector constant can be materialized using a pcmpeq instruction that is 
      commonly recognized as an idiom (has no register dependency), so that's better than 
      loading a splat 1 constant.
      
      AVX512 uses 'vpternlogd' for 512-bit vectors because there is apparently no better
      way to produce 512 one-bits.
      
      The general advantages of this lowering are:
      1. pcmpeq has lower latency than a memop on every uarch I looked at in Agner's tables, 
         so in theory, this could be better for perf, but...
      
      2. That seems unlikely to affect any OOO implementation, and I can't measure any real 
         perf difference from this transform on Haswell or Jaguar, but...
      
      3. It doesn't look like it from the diffs, but this is an overall size win because we 
         eliminate 16 - 64 constant bytes in the case of a vector load. If we're broadcasting 
         a scalar load (which might itself be a bug), then we're replacing a scalar constant 
         load + broadcast with a single cheap op, so that should always be smaller/better too.
      
      4. This makes the DAG/isel output more consistent - we use pcmpeq already for padd x, -1 
         and psub x, -1, so we should use that form for +1 too because we can. If there's some
         reason to favor a constant load on some CPU, let's make the reverse transform for all
         of these cases (either here in the DAG or in a later machine pass).
      
      This should fix:
      https://bugs.llvm.org/show_bug.cgi?id=33483
      
      Differential Revision: https://reviews.llvm.org/D34336
      
      llvm-svn: 306289
      15748d23