summaryrefslogtreecommitdiff
path: root/compiler/optimizing/nodes_riscv64.h
diff options
context:
space:
mode:
author Vladimir Marko <vmarko@google.com> 2024-10-10 15:48:50 +0200
committer VladimĂ­r Marko <vmarko@google.com> 2024-10-11 09:37:33 +0000
commitd7118f354652f570e0d8a5e6092fff962ae1a25d (patch)
treedec4005916a5a135a28eb5d0d732ea5a4198a0b0 /compiler/optimizing/nodes_riscv64.h
parentbcb5c19e5e200607fe76294aeb5273ddac5f04ae (diff)
Do not record dex PC in constant HIR.
Due to the dedplication of constants, the dex PC can be useless or even misleading. Test: m test-art-host-gtest Test: testrunner.py --host --optimizing Change-Id: I501abc3cca920415b3118e92b06a01b173b2406a
Diffstat (limited to 'compiler/optimizing/nodes_riscv64.h')
-rw-r--r--compiler/optimizing/nodes_riscv64.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/optimizing/nodes_riscv64.h b/compiler/optimizing/nodes_riscv64.h
index 4916e57944..51e8f7a1d1 100644
--- a/compiler/optimizing/nodes_riscv64.h
+++ b/compiler/optimizing/nodes_riscv64.h
@@ -42,7 +42,7 @@ class HRiscv64ShiftAdd final : public HBinaryOperation {
HConstant* Evaluate(HLongConstant* x, HLongConstant* y) const override {
const int64_t value = y->GetValue() + (x->GetValue() << GetDistance());
- return GetBlock()->GetGraph()->GetLongConstant(value, GetDexPc());
+ return GetBlock()->GetGraph()->GetLongConstant(value);
}
DECLARE_INSTRUCTION(Riscv64ShiftAdd);