1. Oct 26, 2011
  2. Oct 25, 2011
    • David Blaikie's avatar
      00ee7a08
    • NAKAMURA Takumi's avatar
      Revert r142914 and r142915, due to possibly missing file. · 9a8f1396
      NAKAMURA Takumi authored
      r142914: "Introduce a placeholder type for "pseudo object""
      r142915: "Pull the pseudo-object stuff into its own file."
      llvm-svn: 142921
      9a8f1396
    • Duncan Sands's avatar
      Revert commit 142891. Takumi bisected the tablegen miscompiles · 6ca458e4
      Duncan Sands authored
      down to this commit.  Original commit message:
      
      An MBB which branches to an EH landing pad shouldn't be considered for tail merging.
      
      In SjLj EH, the jump to the landing pad is not done explicitly through a branch
      statement. The EH landing pad is added as a successor to the throwing
      BB. Because of that however, the branch folding pass could mistakenly think that
      it could merge the throwing BB with another BB. This isn't safe to do.
      <rdar://problem/10334833>
      
      llvm-svn: 142920
      6ca458e4
    • Duncan Sands's avatar
      Restore commits 142790 and 142843 - they weren't breaking the build · a370f3e3
      Duncan Sands authored
      bots.  Original commit messages:
      - Reapply r142781 with fix. Original message:
      
        Enhance SCEV's brute force loop analysis to handle multiple PHI nodes in the
        loop header when computing the trip count.
      
        With this, we now constant evaluate:
          struct ListNode { const struct ListNode *next; int i; };
          static const struct ListNode node1 = {0, 1};
          static const struct ListNode node2 = {&node1, 2};
          static const struct ListNode node3 = {&node2, 3};
          int test() {
            int sum = 0;
            for (const struct ListNode *n = &node3; n != 0; n = n->next)
              sum += n->i;
            return sum;
          }
      
      - Now that we look at all the header PHIs, we need to consider all the header PHIs
        when deciding that the loop has stopped evolving. Fixes miscompile in the gcc
        torture testsuite!
      
      llvm-svn: 142919
      a370f3e3
    • David Chisnall's avatar
      Change an int64_t to an intptr_t so that we don't end up with crashes in the... · e89ac066
      David Chisnall authored
      Change an int64_t to an intptr_t so that we don't end up with crashes in the back end on large classes on 32-bit.
      
      llvm-svn: 142918
      e89ac066
    • Chandler Carruth's avatar
      Fix the API usage in loop probability heuristics. It was incorrectly · 32f46e7c
      Chandler Carruth authored
      classifying many edges as exiting which were in fact not. These mainly
      formed edges into sub-loops. It was also not correctly classifying all
      returning edges out of loops as leaving the loop. With this match most
      of the loop heuristics are more rational.
      
      Several serious regressions on loop-intesive benchmarks like perlbench's
      loop tests when built with -enable-block-placement are fixed by these
      updated heuristics. Unfortunately they in turn uncover some other
      regressions. There are still several improvemenst that should be made to
      loop heuristics including trip-count, and early back-edge management.
      
      llvm-svn: 142917
      32f46e7c
    • Duncan Sands's avatar
      Speculatively revert commits 142790 and 142843 to see if it fixes · 805c5b92
      Duncan Sands authored
      the dragonegg and llvm-gcc self-host buildbots.  Original commit
      messages:
      - Reapply r142781 with fix. Original message:
      
        Enhance SCEV's brute force loop analysis to handle multiple PHI nodes in the
        loop header when computing the trip count.
      
        With this, we now constant evaluate:
          struct ListNode { const struct ListNode *next; int i; };
          static const struct ListNode node1 = {0, 1};
          static const struct ListNode node2 = {&node1, 2};
          static const struct ListNode node3 = {&node2, 3};
          int test() {
            int sum = 0;
            for (const struct ListNode *n = &node3; n != 0; n = n->next)
              sum += n->i;
            return sum;
          }
      
      - Now that we look at all the header PHIs, we need to consider all the header PHIs
      when deciding that the loop has stopped evolving. Fixes miscompile in the gcc
      torture testsuite!
      
      llvm-svn: 142916
      805c5b92
    • John McCall's avatar
      Pull the pseudo-object stuff into its own file. · 2ab33d28
      John McCall authored
      Tidy up some marginally related code just to annoy
      single-purpose-commit lovers.  No functionality change.
      
      llvm-svn: 142915
      2ab33d28
    • John McCall's avatar
      Introduce a placeholder type for "pseudo object" · c4a2d325
      John McCall authored
      expressions: expressions which refer to a logical rather
      than a physical l-value, where the logical object is
      actually accessed via custom getter/setter code.
      A subsequent patch will generalize the AST for these
      so that arbitrary "implementing" sub-expressions can
      be provided.
      
      Right now the only client is ObjC properties, but
      this should be generalizable to similar language
      features, e.g. Managed C++'s __property methods.
      
      llvm-svn: 142914
      c4a2d325
    • Eric Christopher's avatar
      Allow the -fno-operator-names option to be passed down to the rest · 8605082d
      Eric Christopher authored
      of the compiler.
      
      Fixes PR10198
      Patch by Brian Foley!
      
      llvm-svn: 142913
      8605082d