Skip to content
Permalink
Browse files
8264517: C2: make MachCallNode::return_value_is_used() only available…
… for x86

Reviewed-by: kvn, thartmann
  • Loading branch information
tobiasholenstein authored and TobiHartmann committed Sep 10, 2021
1 parent 70c9e02 commit 792281d559ca1f01493775fdfc2a6ed09b3b883d
Showing with 3 additions and 2 deletions.
  1. +2 −0 src/hotspot/share/opto/machnode.cpp
  2. +1 −2 src/hotspot/share/opto/machnode.hpp
@@ -681,6 +681,7 @@ void MachCallNode::dump_spec(outputStream *st) const {
}
#endif

#ifndef _LP64
bool MachCallNode::return_value_is_used() const {
if (tf()->range()->cnt() == TypeFunc::Parms) {
// void return
@@ -697,6 +698,7 @@ bool MachCallNode::return_value_is_used() const {
}
return false;
}
#endif

// Similar to cousin class CallNode::returns_pointer
// Because this is used in deoptimization, we want the type info, not the data
@@ -913,8 +913,7 @@ class MachCallNode : public MachSafePointNode {
virtual const RegMask &in_RegMask(uint) const;
virtual int ret_addr_offset() { return 0; }

bool returns_long() const { return tf()->return_type() == T_LONG; }
bool return_value_is_used() const;
NOT_LP64(bool return_value_is_used() const;)

// Similar to cousin class CallNode::returns_pointer
bool returns_pointer() const;

1 comment on commit 792281d

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 792281d Sep 10, 2021

Please sign in to comment.