Skip to content

Commit

Permalink
Fixed code style and release build failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Fei Gao committed Oct 25, 2023
1 parent b388240 commit dcb87ad
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
6 changes: 3 additions & 3 deletions src/hotspot/share/opto/superword.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1029,7 +1029,7 @@ void SuperWord::dependence_graph() {

// First, assign a dependence node to each memory node
for (int i = 0; i < _body_nodes.length(); i++ ) {
Node *n = _body_nodes.at(i);
Node* n = _body_nodes.at(i);
if (n->is_Mem() || n->is_memory_phi()) {
_dg.make_node(n);
}
Expand Down Expand Up @@ -3537,9 +3537,9 @@ void SuperWord::align_initial_loop_index(MemNode* align_to_ref) {
int v_align = vw / elt_size;
assert(v_align > 1, "sanity");
int offset = align_to_ref_p.offset_in_bytes() / elt_size;
Node *offsn = igvn()->intcon(offset);
Node* offsn = igvn()->intcon(offset);

Node *e = offsn;
Node* e = offsn;
if (align_to_ref_p.invar() != nullptr) {
// incorporate any extra invariant piece producing (offset +/- invar) >>> log2(elt)
Node* log2_elt = igvn()->intcon(exact_log2(elt_size));
Expand Down
7 changes: 3 additions & 4 deletions src/hotspot/share/opto/vectorization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,10 @@
#include "opto/rootnode.hpp"
#include "opto/vectorization.hpp"

#ifndef PRODUCT
uintx Vectorizer::_vector_loop_debug = 0;
int VPointer::Tracer::_depth = 0;
#endif

Vectorizer::Vectorizer(PhaseIdealLoop* phase) :
_phase(phase),
Expand Down Expand Up @@ -177,10 +180,6 @@ void Vectorizer::print_body_nodes() {
#endif
}

#ifndef PRODUCT
int VPointer::Tracer::_depth = 0;
#endif

VPointer::VPointer(MemNode* mem, PhaseIdealLoop* phase, IdealLoopTree* lpt,
Node_Stack* nstack, bool analyze_only) :
_mem(mem), _phase(phase), _lpt(lpt),
Expand Down

0 comments on commit dcb87ad

Please sign in to comment.