Lines Matching refs:Root
378 static void collectLeaves(Value *Root, SmallVectorImpl<Instruction *> &Leaves) { in collectLeaves() argument
381 Worklist.push_back(Root); in collectLeaves()
391 if (!PN->hasNUses(PN == Root ? 2 : 1)) in collectLeaves()
403 if (BO->hasNUses(BO == Root ? 2 : 1)) { in collectLeaves()
410 if (BO->hasNUses(BO == Root ? 3 : 2)) { in collectLeaves()
412 for (auto *U : Root->users()) in collectLeaves()
434 if (!V->hasNUses(I == Root ? 2 : 1)) in collectLeaves()
465 Value *Root = matchAddReduction(*EE); in runOnFunction() local
466 if (!Root) in runOnFunction()
470 collectLeaves(Root, Leaves); in runOnFunction()
480 if (I != Root && trySADReplacement(I)) in runOnFunction()