]> granicus.if.org Git - llvm/commit
[BDCE] Remove instructions without demanded bits
authorNikita Popov <nikita.ppv@gmail.com>
Wed, 2 Jan 2019 20:02:14 +0000 (20:02 +0000)
committerNikita Popov <nikita.ppv@gmail.com>
Wed, 2 Jan 2019 20:02:14 +0000 (20:02 +0000)
commitda74d6f1e6410c93b4dd611c436a27ad451d431f
tree942f7e206f837ff8667d1f37f0c1e8cc15280d54
parent9180633883887e62eb9e0f146e88fc1160ef34f9
[BDCE] Remove instructions without demanded bits

If an instruction has no demanded bits, remove it directly during BDCE,
instead of leaving it for something else to clean up.

Differential Revision: https://reviews.llvm.org/D56185

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@350257 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/BDCE.cpp
test/Transforms/BDCE/invalidate-assumptions.ll
test/Transforms/BDCE/vectors.ll