[PATCH] D29338: AMDGPU: Basic folds for fmed3 intrinsic

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 31 10:36:39 PST 2017


arsenm created this revision.
Herald added subscribers: tpr, tony-tye, yaxunl, wdng, kzhuravl.

Constant fold, canonicalize constants to RHS,
reduce to minnum/maxnum when inputs are nan/undef.


https://reviews.llvm.org/D29338

Files:
  include/llvm/IR/IRBuilder.h
  include/llvm/IR/PatternMatch.h
  lib/IR/IRBuilder.cpp
  lib/Transforms/InstCombine/InstCombineCalls.cpp
  test/Transforms/InstCombine/amdgcn-intrinsics.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29338.86458.patch
Type: text/x-patch
Size: 12752 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170131/96b6e568/attachment.bin>


More information about the llvm-commits mailing list