[PATCH] D87168: [InstSimplify] Fold min/max based on dominating condition
Nikita Popov via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 4 14:50:18 PDT 2020
nikic created this revision.
nikic added reviewers: spatel, lebedev.ri.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.
nikic requested review of this revision.
If we have a dominating condition that x >= y, then umax(x, y) is x, etc. I'm doing this in InstSimplify as the corresponding transform for the select form is also done there.
Repository:
rG LLVM Github Monorepo
https://reviews.llvm.org/D87168
Files:
llvm/lib/Analysis/InstructionSimplify.cpp
llvm/test/Transforms/InstSimplify/maxmin_intrinsics.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87168.290034.patch
Type: text/x-patch
Size: 4750 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200904/f75729ef/attachment.bin>
More information about the llvm-commits
mailing list