Skip to content

Commit ae3ba41

Browse files
committed
rename processPhiNode -> processBasicBlock
1 parent cd7725e commit ae3ba41

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

third_party/intel/lib/LLVMIR/LLVMIRFreezeMaskedDivRem.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
using namespace llvm;
88

9-
static bool processPhiNode(PHINode *PhiNode, BasicBlock &BB) {
9+
static bool processBasicBlock(BasicBlock &BB, PHINode *PhiNode) {
1010
if (!any_of(PhiNode->incoming_values(), [](Use &U) {
1111
if (Constant *C = dyn_cast<Constant>(&U)) {
1212
return C->isNullValue();
@@ -38,7 +38,7 @@ static bool runOnFunction(Function &F) {
3838
for (BasicBlock &BB : F) {
3939
for (Instruction &I : BB) {
4040
if (PHINode *PhiNode = dyn_cast<PHINode>(&I)) {
41-
Changed |= processPhiNode(PhiNode, BB);
41+
Changed |= processBasicBlock(BB, PhiNode);
4242
continue;
4343
}
4444
break;

0 commit comments

Comments
 (0)