[PATCH] D49238: [InstCombine] add more SPFofSPF folding

ChenZheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 12 08:00:50 PDT 2018


shchenz created this revision.
shchenz added reviewers: spatel, echristo, nemanjai.
Herald added a subscriber: hiraditya.

This is from https://reviews.llvm.org/D48754.

Make matchSelectPattern() can recognize more abs pattern now. foldSPFofSPF() can also fold more SPF of SPF(abs/nabs) patterns.

Testcases are added at https://reviews.llvm.org/rL336902.


https://reviews.llvm.org/D49238

Files:
  llvm/lib/Analysis/ValueTracking.cpp
  llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
  llvm/test/Transforms/InstCombine/abs_abs.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49238.155177.patch
Type: text/x-patch
Size: 13823 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180712/d355aa66/attachment.bin>


More information about the llvm-commits mailing list