C++: Cache 'getAnInput' since it's now used in several queries.

This commit is contained in:
Mathias Vorreiter Pedersen
2023-08-22 13:37:24 +01:00
parent 1c3a0d1632
commit bbce7ee96d

View File

@@ -550,6 +550,7 @@ class SsaPhiNode extends Node, TSsaPhiNode {
* `fromBackEdge` is true if data flows along a back-edge,
* and `false` otherwise.
*/
cached
final Node getAnInput(boolean fromBackEdge) {
localFlowStep(result, this) and
if phi.getBasicBlock().dominates(result.getBasicBlock())