Skip to content
  1. Apr 02, 2013
    • Hal Finkel's avatar
      Fix typo in PPCISelLowering · 93d75ea0
      Hal Finkel authored
      Thanks to Bill Schmidt for finding this in review of r178480.
      
      llvm-svn: 178521
      93d75ea0
    • John McCall's avatar
      Add -Wstatic-local-in-inline, which warns about using a static local · c87d9723
      John McCall authored
      variable in a C99 inline (but not static-inline or extern-inline)
      function definition.
      
      The standard doesn't actually say that this doesn't apply to
      "extern inline" definitions, but that seems like a useful extension,
      and it at least doesn't have the obvious flaw that a static
      mutable variable in an externally-available definition does.
      
      rdar://13535367
      
      llvm-svn: 178520
      c87d9723
    • Andrew Trick's avatar
      The divide unit is not pipeline, but it is still buffered. · e1d88cfb
      Andrew Trick authored
      Buffered means a later divide may be executed out-of-order while a
      prior divide is sitting (buffered) in a reservation station.
      
      You can tell it's not pipelined, because operations that use it
      reserve it for more than one cycle:
      
      def : WriteRes<WriteIDiv, [HWPort0, HWDivider]> {
        let Latency = 25;
        let ResourceCycles = [1, 10];
      }
      
      We don't currently distinguish between an unpipeline operation and one
      that is split into multiple micro-ops requiring the same unit. Except
      that the later may have NumMicroOps > 1 if they also consume
      issue/dispatch resources.
      
      llvm-svn: 178519
      e1d88cfb
    • Anna Zaks's avatar
      [analyzer] Teach invalidateRegions that regions within LazyCompoundVal need to be invalidated · 60bf5f45
      Anna Zaks authored
      Refactor invalidateRegions to take SVals instead of Regions as input and teach RegionStore
      about processing LazyCompoundVal as a top-level “escaping” value.
      
      This addresses several false positives that get triggered by the NewDelete checker, but the
      underlying issue is reproducible with other checkers as well (for example, MallocChecker).
      
      llvm-svn: 178518
      60bf5f45
    • Adrian Prantl's avatar
      un-break remaining gdb buildbot testcases. · 2832b4e8
      Adrian Prantl authored
      Make sure we do not generate line info for debugging-related frame setup.
      Follow-up to r178361 / rdar://problem/12767564
      
      llvm-svn: 178517
      2832b4e8
    • Jordan Rose's avatar
      [analyzer] For now, don't inline [cd]tors of C++ containers. · e189b869
      Jordan Rose authored
      This is a heuristic to make up for the fact that the analyzer doesn't
      model C++ containers very well. One example is modeling that
      'std::distance(I, E) == 0' implies 'I == E'. In the future, it would be
      nice to model this explicitly, but for now it just results in a lot of
      false positives.
      
      The actual heuristic checks if the base type has a member named 'begin' or
      'iterator'. If so, we treat the constructors and destructors of that type
      as opaque, rather than inlining them.
      
      This is intended to drastically reduce the number of false positives
      reported with experimental destructor support turned on. We can tweak the
      heuristic in the future, but we'd rather err on the side of false negatives
      for now.
      
      <rdar://problem/13497258>
      
      llvm-svn: 178516
      e189b869
    • Jordan Rose's avatar
      [analyzer] Cache whether a function is generally inlineable. · 19440f58
      Jordan Rose authored
      Certain properties of a function can determine ahead of time whether or not
      the function is inlineable, such as its kind, its signature, or its
      location. We can cache this value in the FunctionSummaries map to avoid
      rechecking these static properties for every call.
      
      Note that the analyzer may still decide not to inline a specific call to
      a function because of the particular dynamic properties of the call along
      the current path.
      
      No intended functionality change.
      
      llvm-svn: 178515
      19440f58
    • Jordan Rose's avatar
      [analyzer] Use inline storage in the FunctionSummary DenseMap. · 33a1063c
      Jordan Rose authored
      The summaries lasted for the lifetime of the map anyway; no reason to
      include an extra allocation.
      
      Also, use SmallBitVector instead of BitVector to track the visited basic
      blocks -- most functions will have less than 64 basic blocks -- and
      use bitfields for the other fields to reduce the size of the structure.
      
      No functionality change.
      
      llvm-svn: 178514
      33a1063c
    • Jordan Rose's avatar
      [analyzer] Allow suppressing diagnostics reported within the 'std' namespace · d11ef1aa
      Jordan Rose authored
      This is controlled by the 'suppress-c++-stdlib' analyzer-config flag.
      It is currently off by default.
      
      This is more suppression than we'd like to do, since obviously there can
      be user-caused issues within 'std', but it gives us the option to wield
      a large hammer to suppress false positives the user likely can't work
      around.
      
      llvm-svn: 178513
      d11ef1aa
    • Jim Ingham's avatar
      Remove some unused code. · 24eea5d0
      Jim Ingham authored
      llvm-svn: 178512
      24eea5d0
    • Chris Lattner's avatar
      unindent the file to follow coding standards, change class doc comment · e381a8e5
      Chris Lattner authored
      to be correct.  No functionality or behavior change.
      
      llvm-svn: 178511
      e381a8e5
    • Matt Beaumont-Gay's avatar
      Fix typo in test · b2cadd09
      Matt Beaumont-Gay authored
      llvm-svn: 178510
      b2cadd09
    • Sean Callanan's avatar
      Enabled blocks support in the expression parser. · eeb43849
      Sean Callanan authored
      Note: although it is now possible to declare blocks
      and call them inside the same expression, we do not
      generate correct block descriptors so these blocks
      cannot be passed to functions like dispatch_async.
      
      <rdar://problem/12578656>
      
      llvm-svn: 178509
      eeb43849
    • NAKAMURA Takumi's avatar
      Target/R600: Fix CMake build to add missing files. · fd98f7f2
      NAKAMURA Takumi authored
      llvm-svn: 178508
      fd98f7f2
    • Chad Rosier's avatar
      Use the ASYContext::getTypeSizeInChars API to cleanup some ugliness, per John · c3aa2026
      Chad Rosier authored
      and Jordan's suggestion.  No functional change intendend.
      
      llvm-svn: 178507
      c3aa2026
  2. Apr 01, 2013
Loading