summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaStmt.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2010-01-19 22:45:06 +0000
committerDan Gohman <gohman@apple.com>2010-01-19 22:45:06 +0000
commitca19445d08f080d8119bdd9cae245fe9b743beab (patch)
tree67f69534dc9cae16deacc894004671868308732a /clang/lib/Sema/SemaStmt.cpp
parent003b5c8472362a72a1f55bc6cc9c521744cec749 (diff)
downloadbcm5719-llvm-ca19445d08f080d8119bdd9cae245fe9b743beab.tar.gz
bcm5719-llvm-ca19445d08f080d8119bdd9cae245fe9b743beab.zip
When doing address-mode sinking, expand the base register first, rather
than the scaled register. This makes it more likely that subsequent AddrModeMatcher queries will match the new address the same way as the old, instead of accidentally matching what had been the base register as the new scaled register, and then failing to match the scaled register. This fixes some problems with address-mode sinking multiple muls into a block, which will be a lot more common with some upcoming LoopStrengthReduction changes. llvm-svn: 93935
Diffstat (limited to 'clang/lib/Sema/SemaStmt.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud