[PATCH] D49981: [InstSimplify] fold extracting from std::pair (2/2)

Hiroshi Inoue via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jul 30 05:18:52 PDT 2018


inouehrs created this revision.
inouehrs added reviewers: spatel, lebedev.ri.

This is the second patch in a series of patches to enable jump threading with a method whose return type is std::pair<int, bool> or std::pair<bool, int>. Originally, this patch is included in https://reviews.llvm.org/D48828, but re-submitted as a separate patch.

This second patch in the series handles code sequences that merges two values using `shl` and `or`, then extracts one value using `and`.


https://reviews.llvm.org/D49981

Files:
  lib/Analysis/InstructionSimplify.cpp
  test/Transforms/InstSimplify/AndOrXor.ll
  test/Transforms/InstSimplify/shift.ll
  test/Transforms/NewGVN/pair_jumpthread.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49981.157948.patch
Type: text/x-patch
Size: 9400 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180730/04a07530/attachment-0001.bin>


More information about the llvm-commits mailing list