1. May 16, 2013
    • Rafael Espindola's avatar
      Extend test for better coverage. · a5c7ceed
      Rafael Espindola authored
      Without this change nothing was covering this addFrameMove:
      
      // For 64-bit SVR4 when we have spilled CRs, the spill location
      // is SP+8, not a frame-relative slot.
      if (Subtarget.isSVR4ABI()
          && Subtarget.isPPC64()
          && (PPC::CR2 <= Reg && Reg <= PPC::CR4)) {
        MachineLocation CSDst(PPC::X1, 8);
        MachineLocation CSSrc(PPC::CR2);
        MMI.addFrameMove(Label, CSDst, CSSrc);
        continue;
      }
      
      llvm-svn: 181976
      a5c7ceed
    • Rafael Espindola's avatar
      Removed dead code. · 6e8c0d94
      Rafael Espindola authored
      llvm-svn: 181975
      6e8c0d94
    • Lang Hames's avatar
      Fix PBQP graph iterator typedefs. · a102fe3f
      Lang Hames authored
      llvm-svn: 181973
      a102fe3f
    • Reed Kotler's avatar
      Patch number 2 for mips16/32 floating point interoperability stubs. · 515e9376
      Reed Kotler authored
      This creates stubs that help Mips32 functions call Mips16 
      functions which have floating point parameters that are normally passed
      in floating point registers.
       
      
      llvm-svn: 181972
      515e9376
    • Richard Trieu's avatar
      Check a pointer is not null before attempting to use it. This prevents a · b48e62fb
      Richard Trieu authored
      crash on an explicit specialization of a member function in a class scope.
      
      llvm-svn: 181971
      b48e62fb
    • Richard Trieu's avatar
      Return QualType() when a too large array is attempting to be created. This · 388a33f3
      Richard Trieu authored
      prevents further errors and some overflows in size calculations.
      One overflow was previously triggering an assert.
      
      llvm-svn: 181970
      388a33f3
    • Richard Smith's avatar
      Enable $Date$ substitution for this file. · f37f51f0
      Richard Smith authored
      llvm-svn: 181969
      f37f51f0
    • Enrico Granata's avatar
      <rdar://problem/11158023> · 15a501b0
      Enrico Granata authored
      Make type summary add and breakpoint command add show an helpful prototype + argument reference when manually typing Python code for these elements
      
      llvm-svn: 181968
      15a501b0
    • Richard Smith's avatar
      Start a page tracking which C++ defect reports have been implemented in Clang. · c8adfc89
      Richard Smith authored
      The page is generated from a text file listing DR numbers and implementation
      status, plus a copy of the cwg_index.html from the WG21 website. Recipe:
      
        $ wget http://www.open-std.org/jtc1/sc22/wg21/docs/cwg_index.html
        $ ./make_cxx_dr_status >! cxx_dr_status.html
      
      The intent here is to go through all the DRs, add tests for each one, then mark
      them as done once such tests are committed and passing. I've not linked to this
      page from anywhere, since it doesn't contain any useful information yet.
      
      llvm-svn: 181967
      c8adfc89
    • Eric Christopher's avatar
      Whitespace. · d78d4c91
      Eric Christopher authored
      llvm-svn: 181966
      d78d4c91
    • Eric Christopher's avatar
      80-columns. · 0fdcb315
      Eric Christopher authored
      llvm-svn: 181965
      0fdcb315
    • Eric Christopher's avatar
      Replace a pile of calls with an instance variable that's set · 75e1768b
      Eric Christopher authored
      once. Should be no functional change.
      
      llvm-svn: 181964
      75e1768b
    • Eric Christopher's avatar
      2ec1211c
    • Eric Christopher's avatar
      Fix comment. · c65920b2
      Eric Christopher authored
      llvm-svn: 181962
      c65920b2
    • Eric Christopher's avatar
      Remove xfail'd test. This method of limiting debug info isn't · a45ae1f1
      Eric Christopher authored
      going to go anywhere.
      
      llvm-svn: 181961
      a45ae1f1
    • Eric Christopher's avatar
      Whitespace. · b2a008c6
      Eric Christopher authored
      llvm-svn: 181960
      b2a008c6
    • Adrian Prantl's avatar
      Clarify comment. · 48b3c7dd
      Adrian Prantl authored
      llvm-svn: 181959
      48b3c7dd
    • Adrian Prantl's avatar
      Set the debug location for landing pad code to the canonical EH location. · 5e5ff6e1
      Adrian Prantl authored
      It used to point to the first call that caused the landing pad to
      be generated.
      
      rdar://problem/13888152
      
      llvm-svn: 181958
      5e5ff6e1
    • Adrian Prantl's avatar
    • Greg Clayton's avatar
      Removed unused code and an unused event. · ff1596c2
      Greg Clayton authored
      llvm-svn: 181948
      ff1596c2
    • David Blaikie's avatar
      Revert "Debug Info: Using declarations/DW_TAG_imported_declaration of... · db352814
      David Blaikie authored
      Revert "Debug Info: Using declarations/DW_TAG_imported_declaration of variables, types, and functions."
      
      This reverts commit r181393 (git 3923d6a87fe7b2c91cc4a7dbd90c4ec7e2316bcd).
      
      This seems to be emitting too much extra debug info for two (known)
      reasons:
      * full class definitions are emitted when only declarations are expected
      * unused using declarations still produce DW_TAG_imported_declarations
      
      llvm-svn: 181947
      db352814
    • Jordan Rose's avatar
      Remove unused, awkward CFGStmtVisitor and subclasses. · a7f94ce8
      Jordan Rose authored
      This class is a StmtVisitor that distinguishes between block-level and
      non-block-level statements in a CFG. However, it does so using a hard-coded
      idea of which statements might be block-level, which probably isn't accurate
      anymore. The only implementer of the CFGStmtVisitor hierarchy was the
      analyzer's DeadStoresChecker, and the analyzer creates a linearized CFG
      anyway (every non-trivial statement is a block-level statement).
      
      This also allows us to remove the block-expr map ("BlkExprMap"), which
      mapped statements to positions in the CFG. Apart from having a helper type
      that really should have just been Optional<unsigned>, it was only being
      used to ask /if/ a particular expression was block-level, for traversal
      purposes in CFGStmtVisitor.
      
      llvm-svn: 181945
      a7f94ce8
    • Derek Schuff's avatar
      Revert "Support unaligned load/store on more ARM targets" · 36f00d9f
      Derek Schuff authored
      This reverts r181898.
      
      llvm-svn: 181944
      36f00d9f
    • Eli Bendersky's avatar
      Remove dead code. · b8cd7a0d
      Eli Bendersky authored
      This method is not being used/tested anywhere.
      
      llvm-svn: 181943
      b8cd7a0d
    • Arnold Schwaighofer's avatar
      LoopVectorize: Move call of canHoistAllLoads to canVectorizeWithIfConvert · 88e7fddc
      Arnold Schwaighofer authored
      We only want to check this once, not for every conditional block in the loop.
      
      No functionality change (except that we don't perform a check redudantly
      anymore).
      
      llvm-svn: 181942
      88e7fddc
    • Rafael Espindola's avatar
      Delete dead code. · 84ee6c40
      Rafael Espindola authored
      llvm-svn: 181941
      84ee6c40
    • Fariborz Jahanian's avatar
      Objective-C: More cases of -Wsign-conversion not · 0b11ef2e
      Fariborz Jahanian authored
      working on new Objective-C array subscripting
      syntax. // rdar://13855682
      
      llvm-svn: 181940
      0b11ef2e
    • David Majnemer's avatar
      Set an explicit triple for this test. · 37d38250
      David Majnemer authored
      This allows the test to correctly check symbol names.
      
      llvm-svn: 181939
      37d38250
    • Hal Finkel's avatar
      undef setjmp in PPCCTRLoops · 80267a0a
      Hal Finkel authored
      Trying to unbreak the VS build by copying some undef code from
      Utils/LowerInvoke.cpp.
      
      llvm-svn: 181938
      80267a0a
    • David Majnemer's avatar
      X86: Remove redundant test instructions · 8f169742
      David Majnemer authored
      Increase the number of instructions LLVM recognizes as setting the ZF
      flag. This allows us to remove test instructions that redundantly
      recalculate the flag.
      
      llvm-svn: 181937
      8f169742
    • Howard Hinnant's avatar
      Remove cv qualifiers from member pointers in the __member_pointer_traits test.... · 0125ab80
      Howard Hinnant authored
      Remove cv qualifiers from member pointers in the __member_pointer_traits test.  This was causing a const-qualified bind result to malfunction.  This was a recent regression due to the new use of __member_pointer_traits in restricting the __invokable and __invoke_of tests.
      
      llvm-svn: 181935
      0125ab80
    • Bill Wendling's avatar
      Use proper syntax. · 598123ed
      Bill Wendling authored
      llvm-svn: 181930
      598123ed
    • Hal Finkel's avatar
      Implement PPC counter loops as a late IR-level pass · 25c1992b
      Hal Finkel authored
      The old PPCCTRLoops pass, like the Hexagon pass version from which it was
      derived, could only handle some simple loops in canonical form. We cannot
      directly adapt the new Hexagon hardware loops pass, however, because the
      Hexagon pass contains a fundamental assumption that non-constant-trip-count
      loops will contain a guard, and this is not always true (the result being that
      incorrect negative counts can be generated). With this commit, we replace the
      pass with a late IR-level pass which makes use of SE to calculate the
      backedge-taken counts and safely generate the loop-count expressions (including
      any necessary max() parts). This IR level pass inserts custom intrinsics that
      are lowered into the desired decrement-and-branch instructions.
      
      The most fragile part of this new implementation is that interfering uses of
      the counter register must be detected on the IR level (and, on PPC, this also
      includes any indirect branches in addition to function calls). Also, to make
      all of this work, we need a variant of the mtctr instruction that is marked
      as having side effects. Without this, machine-code level CSE, DCE, etc.
      illegally transform the resulting code. Hopefully, this can be improved
      in the future.
      
      This new pass is smaller than the original (and much smaller than the new
      Hexagon hardware loops pass), and can handle many additional cases correctly.
      In addition, the preheader-creation code has been copied from LoopSimplify, and
      after we decide on where it belongs, this code will be refactored so that it
      can be explicitly shared (making this implementation even smaller).
      
      The new test-case files ctrloop-{le,lt,ne}.ll have been adapted from tests for
      the new Hexagon pass. There are a few classes of loops that this pass does not
      transform (noted by FIXMEs in the files), but these deficiencies can be
      addressed within the SE infrastructure (thus helping many other passes as well).
      
      llvm-svn: 181927
      25c1992b
    • Hal Finkel's avatar
      Fix legalization of SETCC with promoted integer intrinsics · 1f6a7f53
      Hal Finkel authored
      If the input operands to SETCC are promoted, we need to make sure that we
      either use the promoted form of both operands (or neither); a mixture is not
      allowed. This can happen, for example, if a target has a custom promoted
      i1-returning intrinsic (where i1 is not a legal type). In this case, we need to
      use the promoted form of both operands.
      
      This change only augments the behavior of the existing logic in the case where
      the input types (which may or may not have already been legalized) disagree,
      and should not affect existing target code because this case would otherwise
      cause an assert in the SETCC operand promotion code.
      
      This will be covered by (essentially all of the) tests for the new PPCCTRLoops
      infrastructure.
      
      llvm-svn: 181926
      1f6a7f53
    • Bill Wendling's avatar
      Add lldb and polly to the projects to tag. · c6e238c6
      Bill Wendling authored
      llvm-svn: 181925
      c6e238c6
    • Bill Wendling's avatar
      Try to improve performance by using a read/write buffer instead of I/O. · c0540866
      Bill Wendling authored
      The calls to fwrite/fread can be very expensive. GCC avoids this by using a
      buffer to read and write from the file, thus limiting the number of fwrite/fread
      calls.
      
      <rdar://problem/13466086>
      
      llvm-svn: 181924
      c0540866
    • Derek Schuff's avatar
      Fix miscompile due to StackColoring incorrectly merging stack slots (PR15707) · d2c42d76
      Derek Schuff authored
      IR optimisation passes can result in a basic block that contains:
      
        llvm.lifetime.start(%buf)
        ...
        llvm.lifetime.end(%buf)
        ...
        llvm.lifetime.start(%buf)
      
      Before this change, calculateLiveIntervals() was ignoring the second
      lifetime.start() and was regarding %buf as being dead from the
      lifetime.end() through to the end of the basic block.  This can cause
      StackColoring to incorrectly merge %buf with another stack slot.
      
      Fix by removing the incorrect Starts[pos].isValid() and
      Finishes[pos].isValid() checks.
      
      Just doing:
            Starts[pos] = Indexes->getMBBStartIdx(MBB);
            Finishes[pos] = Indexes->getMBBEndIdx(MBB);
      unconditionally would be enough to fix the bug, but it causes some
      test failures due to stack slots not being merged when they were
      before.  So, in order to keep the existing tests passing, treat LiveIn
      and LiveOut separately rather than approximating the live ranges by
      merging LiveIn and LiveOut.
      
      This fixes PR15707.
      Patch by Mark Seaborn.
      
      llvm-svn: 181922
      d2c42d76
    • Ashok Thirumurthi's avatar
      Fixed an xpass due to r181841 on Linux with gcc. Note that the clang variant... · 863bd4a5
      Ashok Thirumurthi authored
      Fixed an xpass due to r181841 on Linux with gcc.  Note that the clang variant contains to xfail, and r181841 is a fix for the test.
      
      llvm-svn: 181918
      863bd4a5
    • Greg Clayton's avatar
      <rdar://problem/13128331> · 9aae0a13
      Greg Clayton authored
      Fixed "target symbols add" to correctly extract all module specifications from a dSYM file that is supplied and match the symbol file to a current target module using the UUID values if they are available.
      
      This fixes the case where you add a dSYM file (like "foo.dSYM") which is for a renamed executable (like "bar"). In our case it was "mach_kernel.dSYM" which didn't match "mach_kernel.sys". 
      
      llvm-svn: 181916
      9aae0a13
    • Samuel Benzaquen's avatar
      Test commit · a76d8cd0
      Samuel Benzaquen authored
      llvm-svn: 181915
      a76d8cd0