[PATCH] D51236: [InstCombine] Extend (add (sext x), cst) --> (sext (add x, cst')) and (add (zext x), cst) --> (zext (add x, cst')) to work for vectors

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Aug 25 10:34:18 PDT 2018


craig.topper updated this revision to Diff 162557.
craig.topper added a comment.

Add more to comment. Fix typo in comment


Repository:
  rL LLVM

https://reviews.llvm.org/D51236

Files:
  include/llvm/IR/PatternMatch.h
  lib/Transforms/InstCombine/InstCombineAddSub.cpp
  test/Transforms/InstCombine/sink-zext.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51236.162557.patch
Type: text/x-patch
Size: 7790 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180825/b368a4cb/attachment.bin>


More information about the llvm-commits mailing list