aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/Commands/CommandObjectVersion.cpp
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2013-07-11 17:08:59 +0000
committerAndrew Trick <atrick@apple.com>2013-07-11 17:08:59 +0000
commit3095993d6f4d062771083f4258fd2a5a35925c13 (patch)
treecc07c27b51cb21f9d2230b004a38c9ade1ae4856 /lldb/source/Commands/CommandObjectVersion.cpp
parente3cef2ad5da0ac6fb275814973a6b4864108a281 (diff)
downloadllvm-3095993d6f4d062771083f4258fd2a5a35925c13.zip
llvm-3095993d6f4d062771083f4258fd2a5a35925c13.tar.gz
llvm-3095993d6f4d062771083f4258fd2a5a35925c13.tar.bz2
indvars: Improve LFTR by eliminating truncation when comparing against a constant.
Patch by Michele Scandale! Adds a special handling of the case where, during the loop exit condition rewriting, the exit value is a constant of bitwidth lower than the type of the induction variable: instead of introducing a trunc operation in order to match correctly the operand types, it allows to convert the constant value to an equivalent constant, depending on the initial value of the induction variable and the trip count, in order have an equivalent comparison between the induction variable and the new constant. llvm-svn: 186107
Diffstat (limited to 'lldb/source/Commands/CommandObjectVersion.cpp')
0 files changed, 0 insertions, 0 deletions