[CodeGenPrepare] Zap the argument of llvm.assume when deleting it
authorBenjamin Kramer <benny.kra@googlemail.com>
Fri, 28 Aug 2020 17:31:36 +0000 (19:31 +0200)
committerBenjamin Kramer <benny.kra@googlemail.com>
Fri, 28 Aug 2020 18:52:22 +0000 (20:52 +0200)
commit52cc97a0db2d4c20655d4df7f2ae5c087ee5807b
tree240d775277834651c67a9ba2434fede167bfe74b
parent8bd895cac0cd4eaf76b9bb296a995e5ee485205b
[CodeGenPrepare] Zap the argument of llvm.assume when deleting it

We know that the argument is mostly likely dead, so we can purge it
early. Otherwise it would make it to codegen, and can block further
optimizations.
llvm/lib/CodeGen/CodeGenPrepare.cpp
llvm/test/Transforms/CodeGenPrepare/X86/delete-assume-dead-code.ll [new file with mode: 0644]