[PATCH] D84250: [InstSimplify] ExpandBinOp should fold an expression only when it's safe

Juneyoung Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 29 07:32:29 PDT 2020


aqjune updated this revision to Diff 281578.
aqjune added a comment.

- Use getBinOpAbsorber
- Add tests

I couldn't find a test that was previously optimized but now unoptimized,
except when & and ^ are combined.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D84250/new/

https://reviews.llvm.org/D84250

Files:
  llvm/lib/Analysis/InstructionSimplify.cpp
  llvm/test/Transforms/InstCombine/and-or-icmps.ll
  llvm/test/Transforms/InstSimplify/distribute.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84250.281578.patch
Type: text/x-patch
Size: 5743 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200729/add6ed50/attachment.bin>


More information about the llvm-commits mailing list