1. Oct 15, 2012
  2. Oct 14, 2012
  3. Oct 13, 2012
    • Benjamin Kramer's avatar
      X86: Fix accidentally swapped operands. · ecd15d7f
      Benjamin Kramer authored
      llvm-svn: 165871
      ecd15d7f
    • Chandler Carruth's avatar
      Teach SROA to cope with wrapper aggregates. These show up a lot in ABI · ba931992
      Chandler Carruth authored
      type coercion code, especially when targetting ARM. Things like [1
      x i32] instead of i32 are very common there.
      
      The goal of this logic is to ensure that when we are picking an alloca
      type, we look through such wrapper aggregates and across any zero-length
      aggregate elements to find the simplest type possible to form a type
      partition.
      
      This logic should (generally speaking) rarely fire. It only ends up
      kicking in when an alloca is accessed using two different types (for
      instance, i32 and float), and the underlying alloca type has wrapper
      aggregates around it. I noticed a significant amount of this occurring
      looking at stepanov_abstraction generated code for arm, and suspect it
      happens elsewhere as well.
      
      Note that this doesn't yet address truly heinous IR productions such as
      PR14059 is concerning. Those result in mismatched *sizes* of types in
      addition to mismatched access and alloca types.
      
      llvm-svn: 165870
      ba931992
    • Chandler Carruth's avatar
      Speculatively harden the conversion logic. I have no idea if this will · 482c6178
      Chandler Carruth authored
      help the dragonegg builders, and no test case at this point, but this
      was one dimly plausible case I spotted by inspection. Hopefully will get
      a testcase from those bots soon-ish, and will tidy this up with proper
      testing.
      
      llvm-svn: 165869
      482c6178