[PATCH] D39958: [InstCombine] Make foldSelectOpOp able to handle two-operand getelementptr

John Brawn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Nov 13 08:19:01 PST 2017


john.brawn created this revision.

Three (or more) operand getelementptrs could plausibly also be handled, but handling only two-operand fits in easily with the existing BinaryOperator handling.


Repository:
  rL LLVM

https://reviews.llvm.org/D39958

Files:
  lib/Transforms/InstCombine/InstCombineSelect.cpp
  test/Transforms/InstCombine/select-gep.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D39958.122652.patch
Type: text/x-patch
Size: 7240 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171113/b9709a78/attachment.bin>


More information about the llvm-commits mailing list