summaryrefslogtreecommitdiffstats
path: root/llvm/lib/ProfileData/CoverageMappingReader.cpp
diff options
context:
space:
mode:
authorPhilip Reames <listmail@philipreames.com>2015-05-07 00:19:14 +0000
committerPhilip Reames <listmail@philipreames.com>2015-05-07 00:19:14 +0000
commit7a738dd94c3209e3fdfdb768d8cf977cef5d9547 (patch)
treee02a7955b6672736b38e788d7098280876906362 /llvm/lib/ProfileData/CoverageMappingReader.cpp
parenta407ddef279b2ed5cedf305fbda3b9134b7a9559 (diff)
downloadbcm5719-llvm-7a738dd94c3209e3fdfdb768d8cf977cef5d9547.tar.gz
bcm5719-llvm-7a738dd94c3209e3fdfdb768d8cf977cef5d9547.zip
[JumpThreading] Simplify comparisons when simplifying branches
If we have recognized that a conditional is constant at a particular location in the code (while trying to decide if we can simplify a conditional branch), we can eagerly replace that condition with a constant if it's definition is post dominated by the branch in question. In practice, this ends up being a compile time savings at most. JumpThreading would have visited each using branch anyways. CVP would have visited the cmp itself again. Unless LVI gives up early, we shouldn't gain any addition power by doing this transformation early. What we do gain is simplicity and compile time. Differential Revision: http://reviews.llvm.org/D9312 llvm-svn: 236684
Diffstat (limited to 'llvm/lib/ProfileData/CoverageMappingReader.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud