diff options
| author | Michael Liao <michael.liao@intel.com> | 2015-10-19 22:08:14 +0000 |
|---|---|---|
| committer | Michael Liao <michael.liao@intel.com> | 2015-10-19 22:08:14 +0000 |
| commit | c65d386b819212b53c76e698fcfb5e16207cdf92 (patch) | |
| tree | af331352bbbbabbe12c3e91a908f085541309e45 /lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp | |
| parent | 6b92a14a28c524e9149b13b2dbea259467421a5b (diff) | |
[InstCombine] Optimize icmp of inc/dec at RHS
Allow LLVM to optimize the sequence like the following:
%inc = add nsw i32 %i, 1
%cmp = icmp slt %n, %inc
into:
%cmp = icmp sle i32 %n, %i
The case is not handled previously due to the complexity of compuation of %n.
Hence, LLVM cannot swap operands of icmp accordingly.
llvm-svn: 250746
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp')
0 files changed, 0 insertions, 0 deletions
