summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocBasic.cpp
diff options
context:
space:
mode:
authorHal Finkel <hfinkel@anl.gov>2012-06-16 20:34:07 +0000
committerHal Finkel <hfinkel@anl.gov>2012-06-16 20:34:07 +0000
commit6261c2dc2850f15722110bfea497602fe5081d2d (patch)
tree84539b871ac5190abcdca54b93977ebca1bf5eb2 /llvm/lib/CodeGen/RegAllocBasic.cpp
parentfa103d3fc7dbe1944c962d293e2eb40d506fbbd0 (diff)
downloadbcm5719-llvm-6261c2dc2850f15722110bfea497602fe5081d2d.tar.gz
bcm5719-llvm-6261c2dc2850f15722110bfea497602fe5081d2d.zip
Cleanup trip-count finding for PPC CTR loops (and some bug fixes).
This cleans up the method used to find trip counts in order to form CTR loops on PPC. This refactoring allows the pass to find loops which have a constant trip count but also happen to end with a comparison to zero. This also adds explicit FIXMEs to mark two different classes of loops that are currently ignored. In addition, we now search through all potential induction operations instead of just the first. Also, we check the predicate code on the conditional branch and abort the transformation if the code is not EQ or NE, and we then make sure that the branch to be transformed matches the condition register defined by the comparison (multiple possible comparisons will be considered). llvm-svn: 158607
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocBasic.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud