This is a trivial tweak to the addrec insertion code: insert the increment
authorChris Lattner <sabre@nondot.org>
Wed, 14 Apr 2004 21:11:25 +0000 (21:11 +0000)
committerChris Lattner <sabre@nondot.org>
Wed, 14 Apr 2004 21:11:25 +0000 (21:11 +0000)
commit16011e6201a11ec16968c27a6f62ebf32537969f
tree8621ed4096b1aadb4950fb3ed510ad8bc7e1afbd
parent50872d5385463cf1d2e23a758516e7f818e1af24
This is a trivial tweak to the addrec insertion code: insert the increment
at the bottom of the loop instead of the top.  This reduces the number of
overlapping live ranges a lot, for example, eliminating a spill in an important
loop in 183.equake with linear scan.

I still need to make the exit comparison of the loop use the post-incremented
version of this variable, but this is an easy first step.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@12952 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolution.cpp