1. Jan 19, 2017
    • Marshall Clow's avatar
      Mark two of the TS implementations as 'in progress' · c3cb054e
      Marshall Clow authored
      llvm-svn: 292490
      c3cb054e
    • Pavel Labath's avatar
      Refactor logging in NativeProcessLinux · a6321a8e
      Pavel Labath authored
      Use the LLDB_LOG macro instead of the more verbose if(log) ... syntax.
      
      I have also consolidated the log channels (everything now goes to the posix
      channel, instead of a mixture of posix and lldb), and cleaned up some of the
      more convoluted log statements.
      
      llvm-svn: 292489
      a6321a8e
    • Hafiz Abid Qadeer's avatar
      Avoid unused variable warning when assert is disabled. · 05008cac
      Hafiz Abid Qadeer authored
      llvm-svn: 292488
      05008cac
    • Simon Pilgrim's avatar
      [X86][SSE] Added tests for pre-truncating arithmetic operations that have already been extended · 3b23eac7
      Simon Pilgrim authored
      As discussed on D28219 - it is profitable to combine trunc(binop (s/zext(x), s/zext(y)) to binop(trunc(s/zext(x)), trunc(s/zext(y))) assuming the trunc(ext()) will simplify further
      
      llvm-svn: 292487
      3b23eac7
    • Tobias Grosser's avatar
      BlockGenerator: Do not redundantly reload from PHI-allocas in non-affine stmts · 75dfaa1d
      Tobias Grosser authored
      Before this change we created an additional reload in the copy of the incoming
      block of a PHI node to reload the incoming value, even though the necessary
      value has already been made available by the normally generated scalar loads.
      In this change, we drop the code that generates this redundant reload and
      instead just reuse the scalar value already available.
      
      Besides making the generated code slightly cleaner, this change also makes sure
      that scalar loads go through the normal logic, which means they can be remapped
      (e.g. to array slots) and corresponding code is generated to load from the
      remapped location. Without this change, the original scalar load at the
      beginning of the non-affine region would have been remapped, but the redundant
      scalar load would continue to load from the old PHI slot location.
      
      It might be possible to further simplify the code in addOperandToPHI,
      but this would not only mean to pull out getNewValue, but to also change the
      insertion point update logic. As this did not work when trying it the first
      time, this change is likely not trivial. To not introduce bugs last minute, we
      postpone further simplications to a subsequent commit.
      
      We also document the current behavior a little bit better.
      
      Reviewed By: Meinersbur
      
      Differential Revision: https://reviews.llvm.org/D28892
      
      llvm-svn: 292486
      75dfaa1d
    • Mikael Holmen's avatar
      [DAG] Don't increase SDNodeOrder for dbg.value/declare. · 2074e749
      Mikael Holmen authored
      Summary:
      The SDNodeOrder is saved in the IROrder field in the SDNode, and this
      field may affects scheduling. Thus, letting dbg.value/declare increase
      the order numbers may in turn affect scheduling.
      
      Because of this change we also need to update the code deciding when
      dbg values should be output, in ScheduleDAGSDNodes.cpp/ProcessSDDbgValues.
      
      Dbg values now have the same order as the SDNode they are connected to,
      not the following orders.
      
      Test cases provided by Florian Hahn.
      
      Reviewers: bogner, aprantl, sunfish, atrick
      
      Reviewed By: atrick
      
      Subscribers: fhahn, probinson, andreadb, llvm-commits, MatzeB
      
      Differential Revision: https://reviews.llvm.org/D25318
      
      llvm-svn: 292485
      2074e749
    • Malcolm Parsons's avatar
      [docs] Tell Doxygen to expand LLVM_ALIGNAS to nothing · 9cfb973a
      Malcolm Parsons authored
      Summary:
      Docs for clang::Decl and clang::TemplateSpecializationType have
      not been generated since LLVM_ALIGNAS was added to them.
      
      Tell Doxygen to expand LLVM_ALIGNAS to nothing as described at
      https://www.stack.nl/~dimitri/doxygen/manual/preprocessing.html
      
      Reviewers: aaron.ballman, klimek, alexfh
      
      Subscribers: ioeric, cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D28850
      
      llvm-svn: 292484
      9cfb973a
    • Malcolm Parsons's avatar
      [docs] Tell Doxygen to expand LLVM_ALIGNAS to nothing · 386171ba
      Malcolm Parsons authored
      Summary:
      Docs for clang::Decl and clang::TemplateSpecializationType have
      not been generated since LLVM_ALIGNAS was added to them.
      
      Tell Doxygen to expand LLVM_ALIGNAS to nothing as described at
      https://www.stack.nl/~dimitri/doxygen/manual/preprocessing.html
      
      Reviewers: aaron.ballman, klimek, alexfh
      
      Subscribers: ioeric, cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D28850
      
      llvm-svn: 292483
      386171ba
    • Mikael Holmen's avatar
      Test commit access, remove trailing whitespace · 8bf15614
      Mikael Holmen authored
      llvm-svn: 292482
      8bf15614
    • Kristof Beyls's avatar
      [GlobalISel] Pointers are legal operands for G_SELECT on AArch64 · e9412b4d
      Kristof Beyls authored
      Differential Revision: https://reviews.llvm.org/D28805
      
      llvm-svn: 292481
      e9412b4d
    • Tobias Grosser's avatar
      BlockGenerator: remove obfuscating const and const casts · 943c369c
      Tobias Grosser authored
      
      
      Making certain values 'const' to just cast it away a little later mainly
      obfuscates the code. Hence, we just drop the 'const' parts.
      
      Suggested-by: default avatarMichael Kruse <llvm@meinersbur.de>
      llvm-svn: 292480
      943c369c
    • Elena Demikhovsky's avatar
      Recommiting unsigned saturation with a bugfix. · e01512ce
      Elena Demikhovsky authored
      A test case that crached is added to avx512-trunc.ll.
      (PR31589)
      
      llvm-svn: 292479
      e01512ce
    • Daniel Sanders's avatar
      Re-commit: [globalisel] Tablegen-erate current Register Bank Information · d64d5024
      Daniel Sanders authored
      Summary:
      Adds a RegisterBank tablegen class that can be used to declare the register
      banks and an associated tablegen pass to generate the necessary code.
      
      Changes since first commit attempt:
      * Added missing guards
      * Added more missing guards
      * Found and fixed a use-after-free bug involving Twine locals
      
      Reviewers: t.p.northover, ab, rovka, qcolombet
      
      Reviewed By: qcolombet
      
      Subscribers: aditya_nandakumar, rengolin, kristof.beyls, vkalintiris, mgorny, dberris, llvm-commits, rovka
      
      Differential Revision: https://reviews.llvm.org/D27338
      
      llvm-svn: 292478
      d64d5024
    • Malcolm Parsons's avatar
      [docs] Tell Doxygen to expand LLVM_ALIGNAS to nothing · 207a6898
      Malcolm Parsons authored
      Summary:
      Docs for clang::Decl and clang::TemplateSpecializationType have
      not been generated since LLVM_ALIGNAS was added to them.
      
      Tell Doxygen to expand LLVM_ALIGNAS to nothing as described at
      https://www.stack.nl/~dimitri/doxygen/manual/preprocessing.html
      
      Reviewers: aaron.ballman, klimek, alexfh
      
      Subscribers: ioeric, cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D28850
      
      llvm-svn: 292477
      207a6898
    • Justin Bogner's avatar
      GlobalISel: Implement widening for shifts · ddb80aee
      Justin Bogner authored
      llvm-svn: 292476
      ddb80aee
    • Craig Topper's avatar
      [AVX-512] Add test cases that show where we are using two subvector inserts to... · b8e92f77
      Craig Topper authored
      [AVX-512] Add test cases that show where we are using two subvector inserts to broadcast a 128-bit subvector into a 512-bit vector. We'd be better off using something like SHUFF32X4.
      
      If the subvector comes from a load, we convert to SUBV_BROADCAST and use a broadcast instruction. But if there is no load we keep the inserts. I think we should create the SUBV_BROADCAST even without the load and let isel use the fallback patterns that are used if the load can't be folded. This will use the SHUFF32X4 or similar instruction for the 128-bit into 512-bit case and a single insert for 128 into 256 or 256 into 512.
      
      This should be fixed so subvector broadcast intrinsics can be replaced with native IR since some of those currently lower directly to SHUFF32X4.
      
      llvm-svn: 292475
      b8e92f77
    • Craig Topper's avatar
      [AVX-512] Support ADD/SUB/MUL of mask vectors · 200ea316
      Craig Topper authored
      Summary:
      Currently we expand and scalarize these operations, but I think we should be able to implement ADD/SUB with KXOR and MUL with KAND.
      
      We already do this for scalar i1 operations so I just extended it to vectors of i1.
      
      Reviewers: zvi, delena
      
      Reviewed By: delena
      
      Subscribers: guyblank, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D28888
      
      llvm-svn: 292474
      200ea316
    • Matt Arsenault's avatar
      AMDGPU: Disable some fneg combines unless nsz · 3e6f9b57
      Matt Arsenault authored
      For -(x + y) -> (-x) + (-y), if x == -y, this would
      change the result from -0.0 to 0.0. Since the fma/fmad
      combine is an extension of this problem it also
      applies there.
      
      fmul should be fine, and I don't think any of the unary
      operators or conversions should be a problem either.
      
      llvm-svn: 292473
      3e6f9b57
    • Matt Arsenault's avatar
      AMDGPU: Remove modifiers from v_div_scale_* · 3b99f12a
      Matt Arsenault authored
      They seem to produce nonsense results when used.
      
      This should be applied to the release branch.
      
      llvm-svn: 292472
      3b99f12a
    • Tobias Grosser's avatar
      Use range-based for loop [NFC] · 97b84909
      Tobias Grosser authored
      llvm-svn: 292471
      97b84909
    • Tobias Grosser's avatar
      Improve test coverage in test/Isl/CodeGen/loop_partially_in_scop.ll [NFC] · a989a8b8
      Tobias Grosser authored
      We rename the test case with -metarenamer to make the variable names easier to
      read and add additional check lines that verify the code we currently generate
      for PHI nodes. This code is interesting as it contains a PHI node in a
      non-affine sub-region, where some incoming blocks are within the non-affine
      sub-region and others are outside of the non-affine subregion.
      
      As can be seen in the check lines we currently load the PHI-node value twice.
      This commit documents this behavior. In a subsequent patch we will try to
      improve this.
      
      llvm-svn: 292470
      a989a8b8
    • Craig Topper's avatar
    • Mike Aizatsky's avatar
      [sancov] applying blacklist to covered points too · 7da919b8
      Mike Aizatsky authored
      Differential Revision: https://reviews.llvm.org/D28872
      
      llvm-svn: 292468
      7da919b8
    • Saleem Abdulrasool's avatar
      llvm-cxxfilt: filter out invalid manglings · c8bcda2b
      Saleem Abdulrasool authored
      c++filt does not attempt to demangle symbols which do not match its
      expected format.  This means that the symbol must start with _Z or ___Z
      (block invocation function extension).  Any other symbols are returned
      as is.  Note that this is different from the behaviour of __cxa_demangle
      which will demangle fragments.
      
      llvm-svn: 292467
      c8bcda2b
    • Craig Topper's avatar
      [AVX-512] Use VSHUF instructions instead of two inserts as fallback for... · b561e663
      Craig Topper authored
      [AVX-512] Use VSHUF instructions instead of two inserts as fallback for subvector broadcasts that can't fold the load.
      
      llvm-svn: 292466
      b561e663
    • Craig Topper's avatar
      [AVX-512] Add additional test cases for broadcast intrinsics that demonstates... · 044662d1
      Craig Topper authored
      [AVX-512] Add additional test cases for broadcast intrinsics that demonstates that we don't fold the loads to use a broadcast instruction.
      
      llvm-svn: 292465
      044662d1
    • Michael Kuperstein's avatar
      [PM] Add LoopVectorize to the default module pipeline · 8ecc38ef
      Michael Kuperstein authored
      LV no longer "requires" LCSSA and LoopSimplify, and instead forms
      them internally as required. So, there's nothing preventing it from
      being enabled.
      
      llvm-svn: 292464
      8ecc38ef
    • Peter Collingbourne's avatar
      LowerTypeTests: Implement exporting of type identifiers. · 22d9d3cd
      Peter Collingbourne authored
      Type identifiers are exported by:
      - Adding coarse-grained information about how to test the type
        identifier to the summary.
      - Creating symbols in the object file (aliases and absolute symbols)
        containing fine-grained information about the type identifier.
      
      Differential Revision: https://reviews.llvm.org/D28424
      
      llvm-svn: 292462
      22d9d3cd
    • Justin Bogner's avatar
      GlobalISel: Implement narrowing for G_LOAD · d09c3ce6
      Justin Bogner authored
      llvm-svn: 292461
      d09c3ce6
    • Justin Bogner's avatar
      GlobalISel: Fix text wrapping in a comment. NFC · 1f5c5054
      Justin Bogner authored
      llvm-svn: 292460
      1f5c5054
    • Matthias Braun's avatar
      Use an actual valid register in test · 58f99615
      Matthias Braun authored
      llvm-svn: 292459
      58f99615
    • Dehao Chen's avatar
      Add -fdebug-info-for-profiling to emit more debug info for sample pgo profile collection · b3a70de7
      Dehao Chen authored
      Summary:
      SamplePGO uses profile with debug info to collect profile. Unlike the traditional debugging purpose, sample pgo needs more accurate debug info to represent the profile. We add -femit-accurate-debug-info for this purpose. It can be combined with all debugging modes (-g, -gmlt, etc). It makes sure that the following pieces of info is always emitted:
      
      * start line of all subprograms
      * linkage name of all subprograms
      * standalone subprograms (functions that has neither inlined nor been inlined)
      
      The impact on speccpu2006 binary size (size increase comparing with -g0 binary, also includes data for -g binary, which does not change with this patch):
      
                     -gmlt(orig) -gmlt(patched) -g
      433.milc       4.68%       5.40%          19.73%
      444.namd       8.45%       8.93%          45.99%
      447.dealII     97.43%      115.21%        374.89%
      450.soplex     27.75%      31.88%         126.04%
      453.povray     21.81%      26.16%         92.03%
      470.lbm        0.60%       0.67%          1.96%
      482.sphinx3    5.77%       6.47%          26.17%
      400.perlbench  17.81%      19.43%         73.08%
      401.bzip2      3.73%       3.92%          12.18%
      403.gcc        31.75%      34.48%         122.75%
      429.mcf        0.78%       0.88%          3.89%
      445.gobmk      6.08%       7.92%          42.27%
      456.hmmer      10.36%      11.25%         35.23%
      458.sjeng      5.08%       5.42%          14.36%
      462.libquantum 1.71%       1.96%          6.36%
      464.h264ref    15.61%      16.56%         43.92%
      471.omnetpp    11.93%      15.84%         60.09%
      473.astar      3.11%       3.69%          14.18%
      483.xalancbmk  56.29%      81.63%         353.22%
      geomean        15.60%      18.30%         57.81%
      
      Debug info size change for -gmlt binary with this patch:
      
      433.milc       13.46%
      444.namd       5.35%
      447.dealII     18.21%
      450.soplex     14.68%
      453.povray     19.65%
      470.lbm        6.03%
      482.sphinx3    11.21%
      400.perlbench  8.91%
      401.bzip2      4.41%
      403.gcc        8.56%
      429.mcf        8.24%
      445.gobmk      29.47%
      456.hmmer      8.19%
      458.sjeng      6.05%
      462.libquantum 11.23%
      464.h264ref    5.93%
      471.omnetpp    31.89%
      473.astar      16.20%
      483.xalancbmk  44.62%
      geomean        16.83%
      
      Reviewers: davidxl, andreadb, rob.lougher, dblaikie, echristo
      
      Reviewed By: dblaikie, echristo
      
      Subscribers: hfinkel, rob.lougher, andreadb, gbedwell, cfe-commits, probinson, llvm-commits, mehdi_amini
      
      Differential Revision: https://reviews.llvm.org/D25435
      
      llvm-svn: 292458
      b3a70de7
    • Dehao Chen's avatar
      Add -debug-info-for-profiling to emit more debug info for sample pgo profile collection · 1ce8d6ca
      Dehao Chen authored
      Summary:
      SamplePGO binaries built with -gmlt to collect profile. The current -gmlt debug info is limited, and we need some additional info:
      
      * start line of all subprograms
      * linkage name of all subprograms
      * standalone subprograms (functions that has neither inlined nor been inlined)
      
      This patch adds these information to the -gmlt binary. The impact on speccpu2006 binary size (size increase comparing with -g0 binary, also includes data for -g binary, which does not change with this patch):
      
                     -gmlt(orig) -gmlt(patched) -g
      433.milc       4.68%       5.40%          19.73%
      444.namd       8.45%       8.93%          45.99%
      447.dealII     97.43%      115.21%        374.89%
      450.soplex     27.75%      31.88%         126.04%
      453.povray     21.81%      26.16%         92.03%
      470.lbm        0.60%       0.67%          1.96%
      482.sphinx3    5.77%       6.47%          26.17%
      400.perlbench  17.81%      19.43%         73.08%
      401.bzip2      3.73%       3.92%          12.18%
      403.gcc        31.75%      34.48%         122.75%
      429.mcf        0.78%       0.88%          3.89%
      445.gobmk      6.08%       7.92%          42.27%
      456.hmmer      10.36%      11.25%         35.23%
      458.sjeng      5.08%       5.42%          14.36%
      462.libquantum 1.71%       1.96%          6.36%
      464.h264ref    15.61%      16.56%         43.92%
      471.omnetpp    11.93%      15.84%         60.09%
      473.astar      3.11%       3.69%          14.18%
      483.xalancbmk  56.29%      81.63%         353.22%
      geomean        15.60%      18.30%         57.81%
      
      Debug info size change for -gmlt binary with this patch:
      
      433.milc       13.46%
      444.namd       5.35%
      447.dealII     18.21%
      450.soplex     14.68%
      453.povray     19.65%
      470.lbm        6.03%
      482.sphinx3    11.21%
      400.perlbench  8.91%
      401.bzip2      4.41%
      403.gcc        8.56%
      429.mcf        8.24%
      445.gobmk      29.47%
      456.hmmer      8.19%
      458.sjeng      6.05%
      462.libquantum 11.23%
      464.h264ref    5.93%
      471.omnetpp    31.89%
      473.astar      16.20%
      483.xalancbmk  44.62%
      geomean        16.83%
      
      Reviewers: davidxl, echristo, dblaikie
      
      Reviewed By: echristo, dblaikie
      
      Subscribers: aprantl, probinson, llvm-commits, mehdi_amini
      
      Differential Revision: https://reviews.llvm.org/D25434
      
      llvm-svn: 292457
      1ce8d6ca
    • Michael Kuperstein's avatar
      [LV] Run loop-simplify and LCSSA explicitly instead of "requiring" them · 230867e5
      Michael Kuperstein authored
      This changes the vectorizer to explicitly use the loopsimplify and lcssa utils,
      instead of "requiring" the transformations as if they were analyses.
      
      This is not NFC, since it changes the LCSSA behavior - we no longer run LCSSA
      for all loops, but rather only for the loops we expect to modify.
      
      Differential Revision: https://reviews.llvm.org/D28868
      
      llvm-svn: 292456
      230867e5
    • Matthias Braun's avatar
      LiveIntervalAnalysis: Cleanup; NFC · 9f21a8d7
      Matthias Braun authored
      - Fix doxygen comments: Do not repeat name, remove duplicated doxygen
        comment (on declaration + implementation), etc.
      - Use more range based for
      
      llvm-svn: 292455
      9f21a8d7
    • Jason Molenda's avatar
      Fix a problem with the new dyld interface code -- when a new process · 848c7be0
      Jason Molenda authored
      starts up, we need to clear the target's image list and only add
      the binaries into the target that are actually present in this
      process run.
      
      <rdar://problem/29857613> 
      
      llvm-svn: 292454
      848c7be0
    • Artem Belevich's avatar
      [NVPTX] Fix lowering of fp16 ISD::FNEG. · 3d3f6190
      Artem Belevich authored
      There's no neg.f16 instruction, so negation has to
      be done via subtraction from zero.
      
      Differential Revision: https://reviews.llvm.org/D28876
      
      llvm-svn: 292452
      3d3f6190
    • Peter Collingbourne's avatar
      Add llvm-dis dependency to check-clang. · 87cdfa76
      Peter Collingbourne authored
      llvm-svn: 292450
      87cdfa76
    • Eli Friedman's avatar
      [SCEV] Make getUDivExactExpr handle non-nuw multiplies correctly. · f1f49c82
      Eli Friedman authored
      To avoid regressions, make ScalarEvolution::createSCEV a bit more
      clever.
      
      Also get rid of some useless code in ScalarEvolution::howFarToZero
      which was hiding this bug.
      
      No new testcase because it's impossible to actually expose this bug:
      we don't have any in-tree users of getUDivExactExpr besides the two
      functions I just mentioned, and they both dodged the problem. I'll
      try to add some interesting users in a followup.
      
      Differential Revision: https://reviews.llvm.org/D28587
      
      llvm-svn: 292449
      f1f49c82
    • Peter Collingbourne's avatar
      Move vtable type metadata emission behind a cc1-level flag. · 1e1475ac
      Peter Collingbourne authored
      In ThinLTO mode, type metadata will require the module to be written as a
      multi-module bitcode file, which is currently incompatible with the Darwin
      linker. It is also useful to be able to enable or disable multi-module bitcode
      for testing purposes. This introduces a cc1-level flag, -f{,no-}lto-unit,
      which is used by the driver to enable multi-module bitcode on all but
      Darwin+ThinLTO, and can also be used to enable/disable the feature manually.
      
      Differential Revision: https://reviews.llvm.org/D28877
      
      llvm-svn: 292448
      1e1475ac