[PATCH] D107148: [InstCombine] Fold two-value clamp patterns

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 30 03:45:51 PDT 2021


RKSimon added inline comments.


================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp:3110
+      ConstantInt *C1 = dyn_cast<ConstantInt>(TrueSI->getFalseValue());
+      ConstantInt *C2 = dyn_cast<ConstantInt>(FalseVal);
+      if (C1 && C2 &&
----------------
(style) auto *


================
Comment at: llvm/test/Transforms/InstCombine/minmax-fold.ll:1511
+  ret i32 %r
+}
----------------
pre-commit these tests and rebase to show the diffs in the patch


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D107148/new/

https://reviews.llvm.org/D107148



More information about the llvm-commits mailing list