OSDN Git Service

Fix the order that SCEVExpander considers add operands in so that
authorDan Gohman <gohman@apple.com>
Thu, 15 Jul 2010 23:38:13 +0000 (23:38 +0000)
committerDan Gohman <gohman@apple.com>
Thu, 15 Jul 2010 23:38:13 +0000 (23:38 +0000)
commitbb5d92741b2835eff25e4524bc6a5b0fb4fda855
treed8f7a04a866ce14c5e266bc3285a65dd805b144a
parente9bf7e692e56656ef13b33af86624d0fdcd578fb
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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@108475 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolutionExpander.cpp
test/Transforms/IndVarSimplify/uglygep.ll [new file with mode: 0644]