Skip to content
Snippets Groups Projects
Commit 1bd47865 authored by Lukas Stadler's avatar Lukas Stadler
Browse files

direct array access in UnaryArithmeticReduceNode

parent 4f532e93
No related branches found
No related tags found
No related merge requests found
......@@ -188,8 +188,9 @@ public abstract class UnaryArithmeticReduceNode extends UnaryNode {
int result = semantics.getIntStart();
na.enable(operand);
int opCount = 0;
int[] data = operand.getDataWithoutCopying();
for (int i = 0; i < operand.getLength(); i++) {
int d = operand.getDataAt(i);
int d = data[i];
if (na.check(d)) {
if (profiledNaRm) {
continue;
......@@ -213,8 +214,9 @@ public abstract class UnaryArithmeticReduceNode extends UnaryNode {
double result = semantics.getDoubleStart();
na.enable(operand);
int opCount = 0;
double[] data = operand.getDataWithoutCopying();
for (int i = 0; i < operand.getLength(); i++) {
double d = operand.getDataAt(i);
double d = data[i];
if (na.check(d)) {
if (profiledNaRm) {
continue;
......@@ -238,8 +240,9 @@ public abstract class UnaryArithmeticReduceNode extends UnaryNode {
int result = semantics.getIntStart();
na.enable(operand);
int opCount = 0;
byte[] data = operand.getDataWithoutCopying();
for (int i = 0; i < operand.getLength(); i++) {
byte d = operand.getDataAt(i);
byte d = data[i];
if (na.check(d)) {
if (profiledNaRm) {
continue;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment