1. Oct 01, 2012
    • Axel Naumann's avatar
      Bring ASTReader and Writer into sync for the case where a canonical template... · a31dee2e
      Axel Naumann authored
      Bring ASTReader and Writer into sync for the case where a canonical template specialization was written, which is non-canonical at the time of reading: force the reading of the ClassTemplateDecl if it was written.
      The easiest way out is to store whether the decl was canonical at the time of writing.
      Add test.
      
      llvm-svn: 164927
      a31dee2e
    • Craig Topper's avatar
    • Chandler Carruth's avatar
      Refactor the PartitionUse structure to actually use the Use* instead of · 54e8f0b4
      Chandler Carruth authored
      a pair of instructions, one for the used pointer and the second for the
      user. This simplifies the representation and also makes it more dense.
      
      This was noticed because of the miscompile in PR13926. In that case, we
      were running up against a fundamental "bad idea" in the speculation of
      PHI and select instructions: the speculation and rewriting are
      interleaved, which requires phi speculation to also perform load
      rewriting! This is bad, and causes us to miss opportunities to do (for
      example) vector rewriting only exposed after PHI speculation, etc etc.
      It also, in the old system, required us to insert *new* load uses into
      the current partition's use list, which would then be ignored during
      rewriting because we had already extracted an end iterator for the use
      list. The appending behavior (and much of the other oddities) stem from
      the strange de-duplication strategy in the PartitionUse builder.
      Amusingly, all this went without notice for so long because it could
      only be triggered by having *different* GEPs into the same partition of
      the same alloca, where both different GEPs were operands of a single
      PHI, and where the GEP which was not encountered first also had multiple
      uses within that same PHI node... Hence the insane steps required to
      reproduce.
      
      So, step one in fixing this fundamental bad idea is to make the
      PartitionUse actually contain a Use*, and to make the builder do proper
      deduplication instead of funky de-duplication. This is enough to remove
      the appending behavior, and fix the miscompile in PR13926, but there is
      more work to be done here. Subsequent commits will lift the speculation
      into its own visitor. It'll be a useful step toward potentially
      extracting all of the speculation logic into a generic utility
      transform.
      
      The existing PHI test case for repeated operands has been made more
      extreme to catch even these issues. This test case, run through the old
      pass, will exactly reproduce the miscompile from PR13926. ;] We were so
      close here!
      
      llvm-svn: 164925
      54e8f0b4
    • Jakub Staszak's avatar
      Use dyn_cast instead of isa and cast. · ec5a2f24
      Jakub Staszak authored
      No functionality change.
      
      llvm-svn: 164924
      ec5a2f24
    • Benjamin Kramer's avatar
      SimplifyCFG: Enumerating all predecessors of a BB can be expensive (switches),... · f064b65a
      Benjamin Kramer authored
      SimplifyCFG: Enumerating all predecessors of a BB can be expensive (switches), avoid it if possible.
      
      No functionality change.
      
      llvm-svn: 164923
      f064b65a
    • Dmitri Gribenko's avatar
      RST docs: convert HTML escapes to plain text in code examples. · 37f92c74
      Dmitri Gribenko authored
      llvm-svn: 164922
      37f92c74
    • Dmitri Gribenko's avatar
      Sphinx CSS: remove negative letter-spacing, it makes some fonts look really · 0fd5ce06
      Dmitri Gribenko authored
      bad.  Fonts already have appropriate tracking built-in.
      
      llvm-svn: 164921
      0fd5ce06
    • Jakub Staszak's avatar
      Fix && to && in Coding Standards. · 2e747e35
      Jakub Staszak authored
      llvm-svn: 164920
      2e747e35
    • Craig Topper's avatar
      Change getX86SubSuperRegister to take an MVT::SimpleValueType rather than an... · 4f1c8caf
      Craig Topper authored
      Change getX86SubSuperRegister to take an MVT::SimpleValueType rather than an EVT and add llvm_unreachable to the switches. Helps it compile to dramatically better code.
      
      llvm-svn: 164919
      4f1c8caf
    • Benjamin Kramer's avatar
      ArgumentPromotion: Remove ancient workaround for a bug in the C backend. · 84036251
      Benjamin Kramer authored
      Fun fact: The CBE learned how to deal with this situation before it was removed.
      
      llvm-svn: 164918
      84036251
  2. Sep 30, 2012
  3. Sep 29, 2012