[PATCH] D31398: [X86][X86 intrinsics]Folding cmp(sub(a, b), 0) into cmp(a, b) optimization

michael zuckerman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 13 10:25:22 PDT 2017


m_zuckerman updated this revision to Diff 95159.
m_zuckerman added a comment.

Hi, 
I did a small modification on the code since I am going to retire from the canonical compare representation review.
I added to the code the ability to fold cmp(0, fsub(a,b)) additnal to the reviewrd cmp(fsub(a,b),0)

Thanks,
Michael Zuckerman


https://reviews.llvm.org/D31398

Files:
  Transforms/InstCombine/InstCombineCalls.cpp
  Transforms/InstCombine/X86FsubCmpCombine.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D31398.95159.patch
Type: text/x-patch
Size: 9493 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170413/554081f7/attachment.bin>


More information about the llvm-commits mailing list