aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/SourceManager.cpp
diff options
context:
space:
mode:
authorDan Gohman <gohman@apple.com>2009-04-27 20:16:15 +0000
committerDan Gohman <gohman@apple.com>2009-04-27 20:16:15 +0000
commit76466373794f34303146931969c1f1905ad526fe (patch)
tree2171320ee377c70e311d3d55bbaec5eca611cb25 /clang/lib/Basic/SourceManager.cpp
parent61cac2b2954cf20760b609fc3efd1c976183cf9b (diff)
downloadllvm-76466373794f34303146931969c1f1905ad526fe.zip
llvm-76466373794f34303146931969c1f1905ad526fe.tar.gz
llvm-76466373794f34303146931969c1f1905ad526fe.tar.bz2
Teach getZeroExtendExpr and getSignExtendExpr to use trip-count
information to simplify [sz]ext({a,+,b}) to {zext(a),+,[zs]ext(b)}, as appropriate. These functions and the trip count code each call into the other, so this requires careful handling to avoid infinite recursion. During the initial trip count computation, conservative SCEVs are used, which are subsequently discarded once the trip count is actually known. Among other benefits, this change lets LSR automatically eliminate some unnecessary zext-inreg and sext-inreg operation where the operand is an induction variable. llvm-svn: 70241
Diffstat (limited to 'clang/lib/Basic/SourceManager.cpp')
0 files changed, 0 insertions, 0 deletions