summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2017-09-02 16:32:37 +0000
committerSanjay Patel <spatel@rotateright.com>2017-09-02 16:32:37 +0000
commitda6f9b2fee65ca857d07bb56f2d8045fed7458b8 (patch)
tree984cfff6719468f19ce5978b3d096deb0bcedd55 /llvm/lib/Transforms
parent4c52f765a594e0c7204250ac91fc2e61a0fb5e8c (diff)
downloadbcm5719-llvm-da6f9b2fee65ca857d07bb56f2d8045fed7458b8.tar.gz
bcm5719-llvm-da6f9b2fee65ca857d07bb56f2d8045fed7458b8.zip
[InstCombine] remove unnecessary code; NFC
llvm-svn: 312416
Diffstat (limited to 'llvm/lib/Transforms')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp b/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
index 6ba3e1fd54f..efc508096d2 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
@@ -947,7 +947,6 @@ Value *InstCombiner::foldAndOfFCmps(FCmpInst *LHS, FCmpInst *RHS) {
if (isa<ConstantAggregateZero>(LHS->getOperand(1)) &&
isa<ConstantAggregateZero>(RHS->getOperand(1)))
return Builder.CreateFCmpORD(LHS->getOperand(0), RHS->getOperand(0));
- return nullptr;
}
return nullptr;
@@ -997,8 +996,6 @@ Value *InstCombiner::foldOrOfFCmps(FCmpInst *LHS, FCmpInst *RHS) {
if (isa<ConstantAggregateZero>(LHS->getOperand(1)) &&
isa<ConstantAggregateZero>(RHS->getOperand(1)))
return Builder.CreateFCmpUNO(LHS->getOperand(0), RHS->getOperand(0));
-
- return nullptr;
}
return nullptr;
OpenPOWER on IntegriCloud