summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar/JumpThreading.cpp
diff options
context:
space:
mode:
authorDavid Majnemer <david.majnemer@gmail.com>2015-08-04 08:21:40 +0000
committerDavid Majnemer <david.majnemer@gmail.com>2015-08-04 08:21:40 +0000
commiteb518bd5d8f01ba6334a23e356488dc068bd1b7f (patch)
tree82596f8b2e96fae8c72f8061125207644c74249b /llvm/lib/Transforms/Scalar/JumpThreading.cpp
parent48977c3364d978b234734e6125adf39e55e9603d (diff)
downloadbcm5719-llvm-eb518bd5d8f01ba6334a23e356488dc068bd1b7f.tar.gz
bcm5719-llvm-eb518bd5d8f01ba6334a23e356488dc068bd1b7f.zip
Drive-by fixes for LandingPad -> EHPad
This change was done as an audit and is by inspection. The new EH system is still very much a work in progress. NFC for the landingpad case. llvm-svn: 243965
Diffstat (limited to 'llvm/lib/Transforms/Scalar/JumpThreading.cpp')
-rw-r--r--llvm/lib/Transforms/Scalar/JumpThreading.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/Scalar/JumpThreading.cpp b/llvm/lib/Transforms/Scalar/JumpThreading.cpp
index e845a7f586b..6ad782f5089 100644
--- a/llvm/lib/Transforms/Scalar/JumpThreading.cpp
+++ b/llvm/lib/Transforms/Scalar/JumpThreading.cpp
@@ -851,10 +851,10 @@ bool JumpThreading::SimplifyPartiallyRedundantLoad(LoadInst *LI) {
if (LoadBB->getSinglePredecessor())
return false;
- // If the load is defined in a landing pad, it can't be partially redundant,
- // because the edges between the invoke and the landing pad cannot have other
+ // If the load is defined in an EH pad, it can't be partially redundant,
+ // because the edges between the invoke and the EH pad cannot have other
// instructions between them.
- if (LoadBB->isLandingPad())
+ if (LoadBB->isEHPad())
return false;
Value *LoadedPtr = LI->getOperand(0);
OpenPOWER on IntegriCloud