commit | e03b64810597a54d0db17e146fe1532d229294c6 | [log] [tgz] |
---|---|---|
author | Craig Topper <craig.topper@intel.com> | Mon Sep 10 23:48:21 2018 +0000 |
committer | Craig Topper <craig.topper@intel.com> | Mon Sep 10 23:48:21 2018 +0000 |
tree | 6251349fa2eba1e8003a36f99390f07cc8cc19f5 | |
parent | 5ec364705cca831b413b297ae85782876f615423 [diff] |
[InstCombine] Add testcases for (mul (sext x), cst) --> (sext (mul x, cst')) and (mul (zext x), cst) --> (zext (mul x, cst')) for vectors constants. If the multiply won't overflow in the original type we can use a smaller mul and sign extend afterwards. We don't currently support this for vector constants. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@341884 91177308-0d34-0410-b5e6-96231b3b80d8