diff options
author | Wojciech Matyjewicz <wmatyjewicz@fastmail.fm> | 2008-02-11 18:37:34 +0000 |
---|---|---|
committer | Wojciech Matyjewicz <wmatyjewicz@fastmail.fm> | 2008-02-11 18:37:34 +0000 |
commit | a089b104218c46803a1af374f6c441df885e54c2 (patch) | |
tree | 6a3e33c1f47c3727fe9ff796ae3a1e716f63b69c /lib/CodeGen/PseudoSourceValue.cpp | |
parent | 1f801fa5ada9cb40fb97ae755c282e91af54a1bc (diff) |
If the LHS of the comparison is a loop-invariant we also want to move it
to the RHS. This simple change allows to compute loop iteration count
for loops with condition similar to the one in the testcase (which seems
to be quite common).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@46959 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/PseudoSourceValue.cpp')
0 files changed, 0 insertions, 0 deletions