Skip to content
Commit 3de8d592 authored by Craig Topper's avatar Craig Topper
Browse files

[InstCombine] Add testcases for (mul (sext x), cst) --> (sext (mul x, cst'))...

[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.

llvm-svn: 341884
parent 116caa29
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment