OSDN Git Service

Fix a thinko in the code that adapted SCEVMulExpr operands for
authorDan Gohman <gohman@apple.com>
Fri, 22 May 2009 07:14:20 +0000 (07:14 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 22 May 2009 07:14:20 +0000 (07:14 +0000)
commit0d56b06f86d6e1707aec9c7e1fd13f6e5301c209
treec9e0b261a7abc0b3c81faa5f6592282888614c89
parent382cb2189a69d169e3ac8b63498ee838022710b2
Fix a thinko in the code that adapted SCEVMulExpr operands for
use in expanding SCEVAddExprs with GEPs. The operands of a
SCEVMulExpr need to be multiplied together, not added.

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