1. Feb 28, 2017
  2. Feb 27, 2017
    • Michael Kruse's avatar
      [DeLICM] Add nomap regressions tests. NFC. · c4f61d23
      Michael Kruse authored
      These verify that some scalars are not mapped because it would be
      incorrect to do so.
      
      For these check we verify that no transformation has been executed from
      output of the pass's '-analyze'. Adding optimization remarks is not useful
      as it would result in too many messages, even repeated ones. I avoided
      checking the '-debug-only=polly-delicm' output which is an antipattern.
      
      llvm-svn: 296348
      c4f61d23
    • Michael Kruse's avatar
      [DeLICM] Statistics for use in regression tests. · b295c37a
      Michael Kruse authored
      Print some measurements of the DeLICM transformation at -analyze to be
      used in regression tests.
      
      llvm-svn: 296347
      b295c37a
    • Asiri Rathnayake's avatar
      Fix typo in error message. NFC. · 01eb4780
      Asiri Rathnayake authored
      llvm-svn: 296346
      01eb4780
    • Artur Pilipenko's avatar
      Loop predication expand both sides of the widened condition · 0860bfc6
      Artur Pilipenko authored
      This is a fix for a loop predication bug which resulted in malformed IR generation.
      
      Loop invariant side of the widened condition is not guaranteed to be available in the preheader as is, so we need to expand it as well. See added unsigned_loop_0_to_n_hoist_length test for example.
      
      Reviewed By: sanjoy, mkazantsev
      
      Differential Revision: https://reviews.llvm.org/D30099
      
      llvm-svn: 296345
      0860bfc6
    • Asiri Rathnayake's avatar
      Attempt to fix arm-native libcxxabi tests for the no-exceptions variant · 0b59cf64
      Asiri Rathnayake authored
      These tests embed calls to exceptions-related symbols from the abi library,
      which are absent in the no-exceptions variant. The tests need to be marked
      as unsupported for the no-exceptions configuration.
      
      llvm-svn: 296344
      0b59cf64
    • Sjoerd Meijer's avatar
      AArch64InstPrinter: rewrite of printSysAlias · 32ecac7a
      Sjoerd Meijer authored
      This is a cleanup/rewrite of the printSysAlias function. This was not using the
      tablegen instruction descriptions, but was "manually" decoding the
      instructions. This has been replaced with calls to lookup_XYZ_ByEncoding
      tablegen calls.
      
      This revealed several problems. First, instruction IVAU had the wrong encoding.
      This was cancelled out by the parser that incorrectly matched the wrong
      encoding. Second, instruction CVAP was missing from the SystemOperands tablegen
      descriptions, so this has been added. And third, the required target features
      were not captured in the tablegen descriptions, so support for this has also
      been added.
      
      Differential Revision: https://reviews.llvm.org/D30329
      
      llvm-svn: 296343
      32ecac7a
    • John Brawn's avatar
      [ARM] LSL #0 is an alias of MOV · c97b714f
      John Brawn authored
      Currently we handle this correctly in arm, but in thumb we don't which leads to
      an unpredictable instruction being emitted for LSL #0 in an IT block and SP not
      being permitted in some cases when it should be.
      
      For the thumb2 LSL we can handle this by making LSL #0 an alias of MOV in the
      .td file, but for thumb1 we need to handle it in checkTargetMatchPredicate to
      get the IT handling right. We also need to adjust the handling of
      MOV rd, rn, LSL #0 to avoid generating the 16-bit encoding in an IT block. We
      should also adjust it to allow SP in the same way that it is allowed in
      MOV rd, rn, but I haven't done that here because it looks like it would take
      quite a lot of work to get right.
      
      Additionally correct the selection of the 16-bit shift instructions in
      processInstruction, where it was checking if the two registers were equal when
      it should have been checking if they were low. It appears that previously this
      code was never executed and the 16-bit encoding was selected by default, but
      the other changes I've done here have somehow made it start being used.
      
      Differential Revision: https://reviews.llvm.org/D30294
      
      llvm-svn: 296342
      c97b714f