migrate away from the use of blacklist and whitelist.
private:
ValueTable VN;
- bool isInstructionBlacklisted(Instruction *I) {
+ bool isInstructionSinkable(Instruction *I) {
// These instructions may change or break semantics if moved.
if (isa<PHINode>(I) || I->isEHPad() || isa<AllocaInst>(I) ||
I->getType()->isTokenTy())
NewInsts.push_back(I);
}
for (auto *I : NewInsts)
- if (isInstructionBlacklisted(I))
+ if (isInstructionSinkable(I))
return None;
// If we've restricted the incoming blocks, restrict all needed PHIs also