[PATCH] D21137: Instcombile min/max intrinsics calls
Karthik Bhat via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 8 07:45:52 PDT 2016
karthikthecool created this revision.
karthikthecool added reviewers: arsenm, hfinkel, majnemer.
karthikthecool added a subscriber: llvm-commits.
karthikthecool set the repository for this revision to rL LLVM.
Adding a small patch to fold the following min/max intrinsics calls-
1) fmin(x, fmax(x, y)) -> x
2) max(x, fmin(x, y)) -> x
Thanks
Repository:
rL LLVM
http://reviews.llvm.org/D21137
Files:
lib/Transforms/InstCombine/InstCombineCalls.cpp
test/Transforms/InstCombine/maxnum.ll
test/Transforms/InstCombine/minnum.ll
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21137.60038.patch
Type: text/x-patch
Size: 4677 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160608/d24bcb67/attachment.bin>
More information about the llvm-commits
mailing list