Revert r367891 - "[InstCombine] combine mul+shl separated by zext"
authorSanjay Patel <spatel@rotateright.com>
Fri, 16 Aug 2019 23:36:28 +0000 (23:36 +0000)
committerSanjay Patel <spatel@rotateright.com>
Fri, 16 Aug 2019 23:36:28 +0000 (23:36 +0000)
commita53ad0e157d19487e2baab9e7bd02bdf1e353782
tree69e8527588c1c2ce5c204ce5acd0cf1ad84bab77
parent16fa8b09702378bacfa3d07081afe6b353b99e60
Revert r367891 - "[InstCombine] combine mul+shl separated by zext"

This reverts commit 5dbb90bfe14ace30224239cac7c61a1422fa5144.

As noted in the post-commit thread for r367891, this can create
a multiply that is lowered to a libcall that may not exist.

We need to improve the backend decomposition for integer multiply
before trying to re-land this (if it's still worthwhile after
doing the backend work).

llvm-svn: 369174
llvm/lib/Transforms/InstCombine/InstCombineShifts.cpp
llvm/test/Transforms/InstCombine/shift.ll