diff options
author | 2023-05-16 16:42:40 +0200 | |
---|---|---|
committer | 2024-10-22 09:25:28 +0000 | |
commit | b3e42351b29820d0e5abc02ad3f4b88a01794699 (patch) | |
tree | a7a75611d2d71cda326bd116161d8331a1609926 /compiler/optimizing/constant_folding.cc | |
parent | 2d2522780c4883e5d9e03b886bb33faf90c60af5 (diff) |
Optimizing: Clean up graph visiting.
Change `PrepareForRegisterAllocation` to `HOptimization` and
use a helper visitor class.
Make some visitor classes final.
Test: m test-art-host-gtest
Test: testrunner.py --host --optimizing
Bug: 181943478
Change-Id: I87700b92e06ff1a6cf7cd8a1e3ab8b7a87568dae
Diffstat (limited to 'compiler/optimizing/constant_folding.cc')
-rw-r--r-- | compiler/optimizing/constant_folding.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/constant_folding.cc b/compiler/optimizing/constant_folding.cc index e31de9e1da..0ec60b5ead 100644 --- a/compiler/optimizing/constant_folding.cc +++ b/compiler/optimizing/constant_folding.cc @@ -72,7 +72,7 @@ class HConstantFoldingVisitor final : public HGraphDelegateVisitor { // This visitor tries to simplify operations with an absorbing input, // yielding a constant. For example `input * 0` is replaced by a // null constant. -class InstructionWithAbsorbingInputSimplifier : public HGraphVisitor { +class InstructionWithAbsorbingInputSimplifier final : public HGraphVisitor { public: explicit InstructionWithAbsorbingInputSimplifier(HGraph* graph) : HGraphVisitor(graph) {} |