Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Christian Hagedorn <christian.hagedorn@oracle.com>
  • Loading branch information
eme64 and chhagedorn committed Jan 29, 2024
1 parent b482516 commit 8289930
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/hotspot/share/compiler/compilerDirectives.cpp
Expand Up @@ -302,7 +302,7 @@ DirectiveSet::DirectiveSet(CompilerDirectives* d) :
_inlinematchers(nullptr),
_directive(d),
_ideal_phase_name_set(PHASE_NUM_TYPES, mtCompiler),
_traceautovectorization_tags(TRACEAUTOVECTORIZATION_TAG_NUM, mtCompiler)
_trace_auto_vectorization_tags(TRACE_AUTO_VECTORIZATION_TAG_NUM, mtCompiler)
{
#define init_defaults_definition(name, type, dvalue, compiler) this->name##Option = dvalue;
compilerdirectives_common_flags(init_defaults_definition)
Expand Down
8 changes: 4 additions & 4 deletions src/hotspot/share/opto/superword.cpp
Expand Up @@ -1228,7 +1228,7 @@ bool SuperWord::follow_use_defs(Node_List* p) {
if (s1->is_Load()) return false;

#ifndef PRODUCT
if(is_trace_superword_alignment()) {
if (is_trace_superword_alignment()) {
tty->print_cr("SuperWord::follow_use_defs: s1 %d, align %d",
s1->_idx, alignment(s1));
}
Expand All @@ -1252,7 +1252,7 @@ bool SuperWord::follow_use_defs(Node_List* p) {
pair->push(t2);
_packset.append(pair);
#ifndef PRODUCT
if(is_trace_superword_alignment()) {
if (is_trace_superword_alignment()) {
tty->print_cr("SuperWord::follow_use_defs: set_alignment(%d, %d, %d)",
t1->_idx, t2->_idx, align);
}
Expand All @@ -1279,7 +1279,7 @@ bool SuperWord::follow_def_uses(Node_List* p) {

int align = alignment(s1);
#ifndef PRODUCT
if(is_trace_superword_alignment()) {
if (is_trace_superword_alignment()) {
tty->print_cr("SuperWord::follow_def_uses: s1 %d, align %d",
s1->_idx, align);
}
Expand Down Expand Up @@ -1326,7 +1326,7 @@ bool SuperWord::follow_def_uses(Node_List* p) {
pair->push(u2);
_packset.append(pair);
#ifndef PRODUCT
if(is_trace_superword_alignment()) {
if (is_trace_superword_alignment()) {
tty->print_cr("SuperWord::follow_def_uses: set_alignment(%d, %d, %d)",
u1->_idx, u2->_idx, align);
}
Expand Down
4 changes: 2 additions & 2 deletions src/hotspot/share/opto/traceAutoVectorizationTag.hpp
Expand Up @@ -28,7 +28,7 @@
#include "utilities/bitMap.inline.hpp"

// TODO: adjust tags to what we need
#define COMPILER_TRACEAUTOVECTORIZATION_TAG(flags) \
#define COMPILER_TRACE_AUTO_VECTORIZATION_TAG(flags) \
flags(POINTER_ANALYSIS, "Trace VPointer") \
flags(SW_PRECONDITION, "Trace SuperWord precondition") \
flags(SW_TYPES, "Trace SuperWord::compute_vector_element_type") \
Expand Down Expand Up @@ -141,7 +141,7 @@ class TraceAutoVectorizationTagValidator {
tag_name++;
set_bit = false;
}
TraceAutoVectorizationTag tat = find_tag(tag_name);
TraceAutoVectorizationTag tag = find_tag(tag_name);
if (TRACEAUTOVECTORIZATION_TAG_NONE == tat) {
// cap len to a value we know is enough for all tags
const size_t len = MIN2<size_t>(strlen(*iter), 63) + 1;
Expand Down

0 comments on commit 8289930

Please sign in to comment.