1. May 17, 2013
  2. May 16, 2013
    • Rafael Espindola's avatar
      Add more test coverage for addFrameMove. · c6b7383b
      Rafael Espindola authored
      llvm-svn: 182017
      c6b7383b
    • Rafael Espindola's avatar
      Remove dead calls to addFrameMove. · 63d2e0ad
      Rafael Espindola authored
      Without a PROLOG_LABEL present, the cfi instructions are never printed.
      
      llvm-svn: 182016
      63d2e0ad
    • Daniel Jasper's avatar
      Add basic clang-format integration for sublime text. · 5b38f744
      Daniel Jasper authored
      llvm-svn: 182015
      5b38f744
    • Edwin Vane's avatar
      cpp11-migrate: Check for valid NULL macros from macro arg expansions · 799ad8e2
      Edwin Vane authored
      The recent improvement to the Use Nullptr Transform for macro arg
      expansions wasn't testing that only allowed NULL macros used in macro
      args can be transformed. This revision replaces a TODO to that effect.
      
      Fixes PR15955.
      
      llvm-svn: 182014
      799ad8e2
    • Edwin Vane's avatar
      cpp11-migrate: Refactor NullptrActions · 1373c5cd
      Edwin Vane authored
      Several free functions related to macro arg testing are being moved into
      CastSequenceVisitor to facilitate upcoming fix.
      
      llvm-svn: 182013
      1373c5cd
    • Ulrich Weigand's avatar
      · 7aa76b6a
      Ulrich Weigand authored
      [PowerPC] Report true displacement value from getPreIndexedAddressParts
      
      DAGCombiner::CombineToPreIndexedLoadStore calls a target routine to
      decompose a memory address into a base/offset pair.  It expects the
      offset (if constant) to be the true displacement value in order to
      perform optional additional optimizations; in particular, to convert
      other uses of the original pointer into uses of the new base pointer
      after pre-increment.
      
      The PowerPC implementation of getPreIndexedAddressParts, however,
      simply calls SelectAddressRegImm, which returns a TargetConstant.
      This value is appropriate for encoding into the instruction, but
      it is not always usable as true displacement value:
      
      - Its type is always MVT::i32, even on 64-bit, where addresses
        ought to be i64 ... this causes the optimization to simply
        always fail on 64-bit due to this line in DAGCombiner:
      
            // FIXME: In some cases, we can be smarter about this.
            if (Op1.getValueType() != Offset.getValueType()) {
      
      - Its value is truncated to an unsigned 16-bit value if negative.
        This causes the above opimization to generate wrong code.
      
      This patch fixes both problems by simply returning the true
      displacement value (in its original type).  This doesn't
      affect any other user of the displacement.
      
      llvm-svn: 182012
      7aa76b6a
    • Rafael Espindola's avatar
      Add more addFrameMove test coverage. · 1f258402
      Rafael Espindola authored
      llvm-svn: 182011
      1f258402
    • Alexander Potapenko's avatar
      [ASan] Fix init-order-dlopen.cc to pass under Mac OS. · 12d09f3a
      Alexander Potapenko authored
      llvm-svn: 182010
      12d09f3a
    • Rafael Espindola's avatar
      Extend test to check the .cfi instructions. · c533b559
      Rafael Espindola authored
      I am about to refactor the calls to addFrameMove and some of the ppc
      ones were not being tested.
      
      llvm-svn: 182009
      c533b559