[PATCH] D156238: [InstCombine] Generalize foldICmpWithMinMax
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 15 23:47:26 PDT 2023
nikic added inline comments.
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp:5031-5032
+ return replaceInstUsesWith(
+ I, Constant::getIntegerValue(
+ I.getType(), APInt(1U, static_cast<uint64_t>(Value))));
+ };
----------------
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D156238/new/
https://reviews.llvm.org/D156238
More information about the llvm-commits
mailing list