package org.simantics.scl.compiler.internal.codegen.analysis;\r
\r
-import gnu.trove.set.hash.THashSet;\r
-\r
import org.simantics.scl.compiler.common.names.Name;\r
+import org.simantics.scl.compiler.common.names.Names;\r
import org.simantics.scl.compiler.constants.SCLConstant;\r
import org.simantics.scl.compiler.internal.codegen.references.Val;\r
import org.simantics.scl.compiler.internal.codegen.references.ValRef;\r
import org.simantics.scl.compiler.internal.codegen.ssa.binders.ValRefBinder;\r
import org.simantics.scl.compiler.internal.codegen.ssa.statements.LetApply;\r
\r
+import gnu.trove.set.hash.THashSet;\r
+\r
public class LoopAnalysis {\r
\r
/**\r
return isLoopingBlockWithBreaker(apply.getParent(), breaker);\r
}\r
} \r
-\r
- private static final Name BUILD = Name.create("Prelude", "build");\r
\r
private static boolean isAppliedAtMostOnce(LetApply apply, ValRef funRef, SSAFunction function) {\r
ValRef applyFunctionRef = apply.getFunction();\r
if(!(applyFunction instanceof SCLConstant))\r
return false; // Not necessarily the right answer\r
Name name = ((SCLConstant)applyFunction).getName();\r
- if(name == BUILD)\r
+ if(name == Names.Prelude_build)\r
return true;\r
return false;\r
}\r