Lines Matching refs:Ph
61 if (Phi* Ph = dyn_cast<Phi>(E)) { in addPredecessor() local
62 Ph->values().reserveCheck(1, Arena); in addPredecessor()
63 Ph->values().push_back(nullptr); in addPredecessor()
73 if (Phi* Ph = dyn_cast<Phi>(E)) { in reservePredecessors() local
74 Ph->values().reserve(NumPreds, Arena); in reservePredecessors()
90 if (const Phi *Ph = dyn_cast<Phi>(E)) { in getCanonicalVal() local
91 if (Ph->status() == Phi::PH_SingleVal) { in getCanonicalVal()
92 E = Ph->values()[0]; in getCanonicalVal()
118 if (auto *Ph = dyn_cast<Phi>(E)) { in simplifyToCanonicalVal() local
119 if (Ph->status() == Phi::PH_Incomplete) in simplifyToCanonicalVal()
120 simplifyIncompleteArg(Ph); in simplifyToCanonicalVal()
122 if (Ph->status() == Phi::PH_SingleVal) { in simplifyToCanonicalVal()
123 E = Ph->values()[0]; in simplifyToCanonicalVal()
135 void til::simplifyIncompleteArg(til::Phi *Ph) { in simplifyIncompleteArg() argument
136 assert(Ph && Ph->status() == Phi::PH_Incomplete); in simplifyIncompleteArg()
139 Ph->setStatus(Phi::PH_MultiVal); in simplifyIncompleteArg()
141 SExpr *E0 = simplifyToCanonicalVal(Ph->values()[0]); in simplifyIncompleteArg()
142 for (unsigned i=1, n=Ph->values().size(); i<n; ++i) { in simplifyIncompleteArg()
143 SExpr *Ei = simplifyToCanonicalVal(Ph->values()[i]); in simplifyIncompleteArg()
144 if (Ei == Ph) in simplifyIncompleteArg()
150 Ph->setStatus(Phi::PH_SingleVal); in simplifyIncompleteArg()