[PATCH] D157754: [InstSimplify] Add more tests for simplifying `(icmp ugt/ule (or X, Y), X)`; NFC
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Aug 12 06:55:34 PDT 2023
nikic added inline comments.
================
Comment at: llvm/test/Transforms/InstSimplify/icmp-orx-x.ll:110
+;
+ %1 = load i1, ptr @b, align 2
+ %2 = select i1 %1, i32 74, i32 0
----------------
Convert to param.
================
Comment at: llvm/test/Transforms/InstSimplify/icmp-orx-x.ll:114
+ %4 = icmp ugt i32 %3, %2
+ br i1 %4, label %6, label %5
+
----------------
Drop the control flow.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D157754/new/
https://reviews.llvm.org/D157754
More information about the llvm-commits
mailing list