8264517: C2: make MachCallNode::return_value_is_used() only available for x86

Reviewed-by: kvn, thartmann
This commit is contained in:
Tobias Holenstein 2021-09-10 07:43:15 +00:00 committed by Tobias Hartmann
parent 70c9e026b6
commit 792281d559
2 changed files with 3 additions and 2 deletions

View File

@ -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

View File

@ -913,8 +913,7 @@ public:
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;