Skip to content

Commit dad4010

Browse files
committed
try
Signed-off-by: Sidorov, Dmitry <[email protected]>
1 parent 89d766f commit dad4010

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

llvm/lib/SYCLLowerIR/SYCLSqrtFDivMaxErrorCleanUp.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -87,18 +87,18 @@ SYCLSqrtFDivMaxErrorCleanUpPass::run(Module &M,
8787
continue;
8888
for (auto &BB : F) {
8989
for (auto &II : BB) {
90-
if (auto *CI = dyn_cast<CallInst>(&II)) {
90+
/* if (auto *CI = dyn_cast<CallInst>(&II)) {
9191
auto *SqrtF = CI->getCalledFunction();
9292
if (SqrtF->getName() == "sqrt" ||
9393
SqrtF->getName().starts_with("_Z4sqrt") ||
9494
SqrtF->getIntrinsicID() == llvm::Intrinsic::sqrt)
9595
return PreservedAnalyses::all();
96-
}
97-
/* if (auto *FPI = dyn_cast<FPMathOperator>(&II)) {
96+
}*/
97+
if (auto *FPI = dyn_cast<FPMathOperator>(&II)) {
9898
auto Opcode = FPI->getOpcode();
9999
if (Opcode == Instruction::FDiv)
100-
return PreservedAnalyses::all();*/
101-
// }
100+
return PreservedAnalyses::all();
101+
}
102102
}
103103
}
104104
}

0 commit comments

Comments
 (0)