Fix the order that SCEVExpander considers add operands in so that
it doesn't miss an opportunity to form a GEP, regardless of the
relative loop depths of the operands. This fixes rdar://8197217.

llvm-svn: 108475
2 files changed
tree: 6223bc08075ad6097229c1d4696eef2b41245c6b
  1. clang/
  2. compiler-rt/
  3. libcxx/
  4. lldb/
  5. llvm/