]> granicus.if.org Git - llvm/commit
[PlaceSafepoints] Followup to commit L237172
authorPhilip Reames <listmail@philipreames.com>
Tue, 12 May 2015 23:39:23 +0000 (23:39 +0000)
committerPhilip Reames <listmail@philipreames.com>
Tue, 12 May 2015 23:39:23 +0000 (23:39 +0000)
commit36cb3ce66a44d7e28810a299f1b32eb6d610b3cd
treea06b8f9bdc06a0bd56d1f6a3d3a15389acf5750d
parent82550fed5c17afbe76f75bedc99ae9d27e5afc92
[PlaceSafepoints] Followup to commit L237172

Responding to review feedback from http://reviews.llvm.org/D9585

1) Remove a variable shadow by converting the outer loop to a range for loop.  We never really used the 'i' variable which was being shadowed.
2) Reduce DominatorTree recalculations by passing the DT to SplitEdge.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@237212 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/PlaceSafepoints.cpp