int c2 = Ircons.newConst(Irmode.getModeIs(),
Tv.newTarvalFromLong (2, Irmode.getModeIs()));
int cmpGt = Ircons.newProj(Ircons.newCmp(Ircons.getValue(0, Irmode.getModeIs()), c2),
- Irmode.getModeb(), Irnode.Gt);
+ Irmode.getModeb(), Irnode.pn_Cmp_Gt);
+
int x = Ircons.newCond (cmpGt);
int f = Ircons.newProj (x, Irmode.getModeX(), 0); /* if condition is false */
int t = Ircons.newProj (x, Irmode.getModeX(), 1); /* if condition is true */
/* Now we can mature the end block as all it's predecessors are known. */
Ircons.matureImmBlock (Irgraph.getIrgEndBlock(irg));
- Irvrfy.irgVrfy(irg);
- Ircons.finalizeCons (irg);
+ Irvrfy.irgVerify(irg, Irvrfy.VRFY_NORMAL);
+ Irgraph.setIrgPhaseState (irg, Irgraph.phase_high);
System.out.println("Done building the graph. Optimizing it.");
Irgopt.localOptimizeGraph(irg);