[PATCH] D154206: [InstCombine] Fold comparison of usub.sat
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jul 5 01:25:15 PDT 2023
nikic accepted this revision.
nikic added a comment.
LGTM
================
Comment at: llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp:3596
+ // Y = (X < C) ? true : ((X - C) pred C2)
+ // => Y = (X < C) || ((X - C)) pred C2
+ // else
----------------
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D154206/new/
https://reviews.llvm.org/D154206
More information about the llvm-commits
mailing list