Mercurial > hg > graal-jvmci-8
comparison src/share/vm/c1/c1_IR.cpp @ 1899:42a10fc37986
6991577: add IfOp optimization to C1
Summary: Ifop optimization for c1
Reviewed-by: never, phh, iveresov
author | roland |
---|---|
date | Fri, 15 Oct 2010 09:38:20 +0200 |
parents | f02a8bbe6ed4 |
children | f95d63e2154a |
comparison
equal
deleted
inserted
replaced
1852:94d77a279225 | 1899:42a10fc37986 |
---|---|
319 class UseCountComputer: public ValueVisitor, BlockClosure { | 319 class UseCountComputer: public ValueVisitor, BlockClosure { |
320 private: | 320 private: |
321 void visit(Value* n) { | 321 void visit(Value* n) { |
322 // Local instructions and Phis for expression stack values at the | 322 // Local instructions and Phis for expression stack values at the |
323 // start of basic blocks are not added to the instruction list | 323 // start of basic blocks are not added to the instruction list |
324 if (!(*n)->is_linked()&& (*n)->can_be_linked()) { | 324 if (!(*n)->is_linked() && (*n)->can_be_linked()) { |
325 assert(false, "a node was not appended to the graph"); | 325 assert(false, "a node was not appended to the graph"); |
326 Compilation::current()->bailout("a node was not appended to the graph"); | 326 Compilation::current()->bailout("a node was not appended to the graph"); |
327 } | 327 } |
328 // use n's input if not visited before | 328 // use n's input if not visited before |
329 if (!(*n)->is_pinned() && !(*n)->has_uses()) { | 329 if (!(*n)->is_pinned() && !(*n)->has_uses()) { |