File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2508,8 +2508,8 @@ PreservedAnalyses SimplifyTypeTestsPass::run(Module &M,
25082508 };
25092509 for (User *U : make_early_inc_range (GV.users ())) {
25102510 if (auto *CI = dyn_cast<ICmpInst>(U)) {
2511- if (CI->getPredicate () == CmpInst::ICMP_EQ &&
2512- MaySimplifyPtr (CI->getOperand (0 ))) {
2511+ if (CI->getPredicate () == CmpInst::ICMP_EQ &&
2512+ MaySimplifyPtr (CI->getOperand (0 ))) {
25132513 // This is an equality comparison (TypeTestResolution::Single case in
25142514 // lowerTypeTestCall). In this case we just replace the comparison
25152515 // with true.
@@ -2538,8 +2538,8 @@ PreservedAnalyses SimplifyTypeTestsPass::run(Module &M,
25382538 if (U.getOperandNo () == 1 && CI &&
25392539 CI->getPredicate () == CmpInst::ICMP_EQ &&
25402540 MaySimplifyInt (CI->getOperand (0 ))) {
2541- // This is an equality comparison. Unlike in the case above it remained
2542- // as an integer compare.
2541+ // This is an equality comparison. Unlike in the case above it
2542+ // remained as an integer compare.
25432543 CI->replaceAllUsesWith (ConstantInt::getTrue (M.getContext ()));
25442544 CI->eraseFromParent ();
25452545 Changed = true ;
You can’t perform that action at this time.
0 commit comments