[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 Dec 4 05:35:39 PST 2017


john.brawn updated this revision to Diff 125314.
john.brawn added a comment.

Update based on comments:

- Use auto when RHS is a cast
- Use cast instead of dyn_cast once we know we're dealing with GetElementPtrInst.


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.125314.patch
Type: text/x-patch
Size: 7209 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171204/692e18ed/attachment.bin>


More information about the llvm-commits mailing list