[PATCH] D156238: [InstCombine] Generalize foldICmpWithMinMax

Yingwei Zheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 16 02:44:30 PDT 2023


dtcxzyw marked an inline comment as done.
dtcxzyw 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))));
+    };
----------------
nikic wrote:
> 
Addressed by rG5163319ee2a048407f83de3ff9ab00613939371a


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