[PATCH] D51900: [InstCombine] Support (mul (sext x), cst) --> (sext (mul x, cst')) and (mul (zext x), cst) --> (zext (mul x, cst')) for vectors constants.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 10 17:02:30 PDT 2018


craig.topper created this revision.
craig.topper added a reviewer: spatel.

Similar to https://reviews.llvm.org/D51236, but for mul instead of add.


https://reviews.llvm.org/D51900

Files:
  lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
  test/Transforms/InstCombine/sink-zext.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51900.164775.patch
Type: text/x-patch
Size: 5306 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180911/3885dda8/attachment.bin>


More information about the llvm-commits mailing list