1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-18 18:42:46 +02:00

Rename function to more accurately reflect what it does.

This commit is contained in:
Eric Christopher 2020-06-20 14:37:29 -07:00
parent 396d126465
commit 099d3a7710

View File

@ -581,7 +581,7 @@ public:
private:
ValueTable VN;
bool isInstructionSinkable(Instruction *I) {
bool shouldAvoidSinkingInstruction(Instruction *I) {
// These instructions may change or break semantics if moved.
if (isa<PHINode>(I) || I->isEHPad() || isa<AllocaInst>(I) ||
I->getType()->isTokenTy())
@ -673,7 +673,7 @@ Optional<SinkingInstructionCandidate> GVNSink::analyzeInstructionForSinking(
NewInsts.push_back(I);
}
for (auto *I : NewInsts)
if (isInstructionSinkable(I))
if (shouldAvoidSinkingInstruction(I))
return None;
// If we've restricted the incoming blocks, restrict all needed PHIs also