InstCombine: Make sure we use the pre-zext type when creating a constant of a value...
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 21 Sep 2012 16:26:41 +0000 (16:26 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 21 Sep 2012 16:26:41 +0000 (16:26 +0000)
commite5bd3cf0006b7f5ec79533a827f5645197d75d2c
treee9ab76aa7953eb7d3b1fd79ba88b125b63059bef
parent30b483c94001927b3593ed200e823104bab51660
InstCombine: Make sure we use the pre-zext type when creating a constant of a value that is zext'd.

Fixes PR13250.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@164377 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
test/Transforms/InstCombine/div-shift.ll