summaryrefslogtreecommitdiff
path: root/compiler/optimizing/bounds_check_elimination.cc
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2023-04-05 09:43:21 +0200
committer Vladimir Marko <vmarko@google.com> 2023-04-05 09:48:42 +0200
commit30759fafda169202ffa03a9373894f6b7c19079c (patch)
tree8ad1878092726e094226c25b4cf3affffa9c56de /compiler/optimizing/bounds_check_elimination.cc
parenta7ad4d81babac2c423b50d8c9f9f5fd51a09db78 (diff)
Mark graph visitor classes as final.
This should improve optimization opportunities for clang++. Test: buildbot-build.sh Change-Id: Ib0c1ebfb157176a9063cca2ed465cff6fb280442
Diffstat (limited to 'compiler/optimizing/bounds_check_elimination.cc')
-rw-r--r--compiler/optimizing/bounds_check_elimination.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/bounds_check_elimination.cc b/compiler/optimizing/bounds_check_elimination.cc
index 210f978cc2..919abfdc49 100644
--- a/compiler/optimizing/bounds_check_elimination.cc
+++ b/compiler/optimizing/bounds_check_elimination.cc
@@ -490,7 +490,7 @@ class MonotonicValueRange : public ValueRange {
DISALLOW_COPY_AND_ASSIGN(MonotonicValueRange);
};
-class BCEVisitor : public HGraphVisitor {
+class BCEVisitor final : public HGraphVisitor {
public:
// The least number of bounds checks that should be eliminated by triggering
// the deoptimization technique.