1. Feb 02, 2018
    • Adrian Prantl's avatar
      Mark fallthrough with LLVM_FALLTHROUGH · 6691e112
      Adrian Prantl authored
      llvm-svn: 323986
      6691e112
    • Sanjay Patel's avatar
      [AArch64] add tests with sqrt estimate and ieee denorms; NFC · 702c19cc
      Sanjay Patel authored
      As noted in D42323, we're not checking for denorms as we should.
      
      llvm-svn: 323985
      702c19cc
    • Sanjay Patel's avatar
      [AArch64] auto-generate complete checks; NFC · f42381fd
      Sanjay Patel authored
      llvm-svn: 323984
      f42381fd
    • Craig Topper's avatar
      [X86] Remove custom lowering vXi1 extending loads and truncating stores. · a8a24232
      Craig Topper authored
      Summary: Now that v2i1/v4i1 are legal without VLX. And v32i1 is legalized by splitting rather than widening. And isVectorLoadExtDesirable returns false for vXi1. It appears this handling is dead because the operations simply don't exist.
      
      Reviewers: RKSimon, zvi, guyblank, delena, spatel
      
      Reviewed By: delena
      
      Subscribers: llvm-commits, rengolin
      
      Differential Revision: https://reviews.llvm.org/D42781
      
      llvm-svn: 323983
      a8a24232
    • Craig Topper's avatar
      [X86] Turn X86ISD::AND nodes that have no flag users back into ISD::AND just... · 7e910a9e
      Craig Topper authored
      [X86] Turn X86ISD::AND nodes that have no flag users back into ISD::AND just before isel to enable test instruction matching
      
      Summary:
      EmitTest sometimes creates X86ISD::AND specifically to hide the AND from DAG combine. But this prevents isel patterns that look for (cmp (and X, Y), 0) from being able to see it. So we end up with an AND and a TEST. The TEST gets removed by compare instruction optimization during the peephole pass.
      
      This patch attempts to fix this by converting X86ISD::AND with no flag users back into ISD::AND during the DAG preprocessing just before isel.
      
      In order to do this correctly I had to make the X86ISD::AND node created by EmitTest in this case really have a flag output. Which arguably it should have had anyway so that the number of operands would be consistent for the opcode in all cases. Then I had to modify the ReplaceAllUsesWith to understand that we might be looking at an instruction with 2 outputs. Though in this case there are no uses to replace since we just created the node, but that's what the code did before so I just made it keep working.
      
      Reviewers: spatel, RKSimon, niravd, deadalnix
      
      Reviewed By: RKSimon
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D42764
      
      llvm-svn: 323982
      7e910a9e
    • Sanjay Patel's avatar
      [DAGCombiner] filter out denorm inputs when calculating sqrt estimate (PR34994) · 657e5d8d
      Sanjay Patel authored
      As shown in the example in PR34994:
      https://bugs.llvm.org/show_bug.cgi?id=34994
      ...we can return a very wrong answer (inf instead of 0.0) for square root when 
      using a reciprocal square root estimate instruction.
      
      Here, I've conditionalized the filtering out of denorms based on the function 
      having "denormal-fp-math"="ieee" in its attributes. The other options for this 
      attribute are 'preserve-sign' and 'positive-zero'.
      
      So we don't generate this extra code by default with just '-ffast-math' (because 
      then there's no denormal attribute string at all), but it works if you specify 
      '-ffast-math -fdenormal-fp-math=ieee' from clang. 
      
      As noted in the review, there may be other problems in clang that affect the 
      results depending on platform (Linux x86 at least), but this should allow 
      creating the desired codegen.
      
      Differential Revision: https://reviews.llvm.org/D42323
      
      llvm-svn: 323981
      657e5d8d
    • Alexander Kornienko's avatar
      396fc876
    • Marshall Clow's avatar
      Remove std::experimental::sample; use std::sample instead. See... · 14082fcc
      Marshall Clow authored
      Remove std::experimental::sample; use std::sample instead. See https://libcxx.llvm.org/TS_deprecation.html
      
      llvm-svn: 323979
      14082fcc
    • Carlo Bertolli's avatar
      [OpenMP-RT] Fix debug string for NVPTX runtime library · 57e9f44a
      Carlo Bertolli authored
      https://reviews.llvm.org/D42757
      
      The method ThreadsInTeam is used to determine the number of threads to be used in a parallel region under SPMD mode (see line 127 of supporti.h in libomptarget/deviceRTLs/nvptx/src/). This patch fixes the corresponding debug print upon initialization of the kernel in SPMD mode.
      
      llvm-svn: 323978
      57e9f44a
    • Nirav Dave's avatar
      [SelectionDAG] Fix UpdateChains handling of TokenFactors · 18f7f60e
      Nirav Dave authored
      Summary:
      In Instruction Selection UpdateChains replaces all matched Nodes'
      chain references including interior token factors and deletes them.
      This may allow nodes which depend on these interior nodes but are not
      part of the set of matched nodes to be left with a dangling dependence.
      Avoid this by doing the replacement for matched non-TokenFactor nodes.
      
      Fixes PR36164.
      
      Reviewers: jonpa, RKSimon, bogner
      
      Subscribers: llvm-commits, hiraditya
      
      Differential Revision: https://reviews.llvm.org/D42754
      
      llvm-svn: 323977
      18f7f60e
    • James Henderson's avatar
      [ELF] Add --print-icf-sections flag · 9c6e2fd5
      James Henderson authored
      Currently ICF information is output through stderr if the "--verbose"
      flag is used. This differs to Gold for example, which uses an explicit
      flag to output this to stdout. This commit adds the
      "--print-icf-sections" and "--no-print-icf-sections" flags and changes
      the output message format for clarity and consistency with
      "--print-gc-sections". These messages are still output to stderr if
      using the verbose flag. However to avoid intermingled message output to
      console, this will not occur when the "--print-icf-sections" flag is
      used.
      
      Existing tests have been modified to expect the new message format from
      stderr.
      
      Patch by Owen Reynolds.
      
      Differential Revision: https://reviews.llvm.org/D42375
      
      Reviewers: ruiu, rafael
      
      Reviewed by: 
      
      llvm-svn: 323976
      9c6e2fd5
  2. Feb 01, 2018