summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Scalar
diff options
context:
space:
mode:
authorMatthias Braun <matze@braunis.de>2018-10-31 00:23:23 +0000
committerMatthias Braun <matze@braunis.de>2018-10-31 00:23:23 +0000
commit9fd397b423ba442808957e65e3ad25a07cd203e4 (patch)
tree7145d100b0a62cf322449093f203eb7c9e80c3b8 /llvm/lib/Transforms/Scalar
parentac0ba8c52493012daabb73512a5739394c37a2dc (diff)
downloadbcm5719-llvm-9fd397b423ba442808957e65e3ad25a07cd203e4.tar.gz
bcm5719-llvm-9fd397b423ba442808957e65e3ad25a07cd203e4.zip
ADT/STLExtras: Introduce llvm::empty; NFC
This is modeled after C++17 std::empty(). Differential Revision: https://reviews.llvm.org/D53909 llvm-svn: 345679
Diffstat (limited to 'llvm/lib/Transforms/Scalar')
-rw-r--r--llvm/lib/Transforms/Scalar/NewGVN.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/Scalar/NewGVN.cpp b/llvm/lib/Transforms/Scalar/NewGVN.cpp
index f5c1493781d..cd57ebd0c6f 100644
--- a/llvm/lib/Transforms/Scalar/NewGVN.cpp
+++ b/llvm/lib/Transforms/Scalar/NewGVN.cpp
@@ -1751,7 +1751,7 @@ NewGVN::performSymbolicPHIEvaluation(ArrayRef<ValPair> PHIOps,
return true;
});
// If we are left with no operands, it's dead.
- if (Filtered.begin() == Filtered.end()) {
+ if (empty(Filtered)) {
// If it has undef at this point, it means there are no-non-undef arguments,
// and thus, the value of the phi node must be undef.
if (HasUndef) {
OpenPOWER on IntegriCloud