summaryrefslogtreecommitdiff
path: root/compiler/optimizing/nodes.h
diff options
context:
space:
mode:
author Santiago Aboy Solanes <solanes@google.com> 2022-07-29 14:09:28 +0100
committer Treehugger Robot <treehugger-gerrit@google.com> 2023-01-13 16:49:53 +0000
commita3bd09c50cbc380a91f43da9714c7ab058f4eefa (patch)
tree209ced08ea1281168d4a380c4d8bc1537fe2f4ba /compiler/optimizing/nodes.h
parent74da668328e1c501742a864d23ba8c114ece5e64 (diff)
Simplify SimplifyAlwaysThrows
Remove most of the preconditions of the optimization since they are not needed e.g.: * Ending with a Goto * Not flowing to the Exit block * The successor block having another predecessor * Not doing the optimization in a catch block Test: art/test/testrunner/testrunner.py --host --64 --optimizing -b Change-Id: Idd0c722d1cd34fa6c394338a2e475a7ff60bd88a
Diffstat (limited to 'compiler/optimizing/nodes.h')
-rw-r--r--compiler/optimizing/nodes.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/nodes.h b/compiler/optimizing/nodes.h
index 8f7635aa21..58ce9cec70 100644
--- a/compiler/optimizing/nodes.h
+++ b/compiler/optimizing/nodes.h
@@ -4734,7 +4734,7 @@ class HInvoke : public HVariableInputSizeInstruction {
void SetAlwaysThrows(bool always_throws) { SetPackedFlag<kFlagAlwaysThrows>(always_throws); }
- bool AlwaysThrows() const override { return GetPackedFlag<kFlagAlwaysThrows>(); }
+ bool AlwaysThrows() const override final { return GetPackedFlag<kFlagAlwaysThrows>(); }
bool CanBeMoved() const override { return IsIntrinsic() && !DoesAnyWrite(); }