summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen/CodeGenModule.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-06-13 16:25:49 +0000
committerDan Gohman <gohman@apple.com>2009-06-13 16:25:49 +0000
commit426901aa19d0d4d9d580bd95af2ba00711c360a3 (patch)
tree08430c19ed431acec6fc6c3752b5fe0d9a9ffa3e /clang/lib/CodeGen/CodeGenModule.cpp
parent8db2edcf7fd7de2e3965e873890fdaf1c7c4b261 (diff)
downloadbcm5719-llvm-426901aa19d0d4d9d580bd95af2ba00711c360a3.tar.gz
bcm5719-llvm-426901aa19d0d4d9d580bd95af2ba00711c360a3.zip
Teach SCEVExpander's visitAddRecExpr to reuse an existing canonical
induction variable when the addrec to be expanded does not require a wider type. This eliminates the need for IndVarSimplify to micro-manage SCEV expansions, because SCEVExpander now automatically expands them in the form that IndVarSimplify considers to be canonical. (LSR still micro-manages its SCEV expansions, because it's optimizing for the target, rather than for other optimizations.) Also, this uses the new getAnyExtendExpr, which has more clever expression simplification logic than the IndVarSimplify code it replaces, and this cleans up some ugly expansions in code such as the included masked-iv.ll testcase. llvm-svn: 73294
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud