OSDN Git Service

[InstCombine] Replace an 'if' that should always be true with an assert.
authorCraig Topper <craig.topper@intel.com>
Thu, 10 May 2018 22:45:28 +0000 (22:45 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 10 May 2018 22:45:28 +0000 (22:45 +0000)
commitff56eb4dc5c60d96742e523c9b8f3161eccffe4f
tree9e4c1a68acb4dfda2c09f46e7ce338facca9dd2c
parent04cf0d7c9c3fa9a74f454d5997a977d29396b34d
[InstCombine] Replace an 'if' that should always be true with an assert.

The bitwidth of the operation should always be wider than the result width of the truncate since we don't recurse through any width changing operations.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@332055 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCasts.cpp