]> granicus.if.org Git - llvm/commit
[GVN][NFC] Mark instruction for deletion instead of immediate erasing in LoadPRE
authorMax Kazantsev <max.kazantsev@azul.com>
Mon, 30 Oct 2017 04:48:34 +0000 (04:48 +0000)
committerMax Kazantsev <max.kazantsev@azul.com>
Mon, 30 Oct 2017 04:48:34 +0000 (04:48 +0000)
commite78fad81ecb318619aabe6639e4ab54d11c1fc9e
treecf0df40332f6efcafba8ef6634bb2014205a3a41
parente785b6bb1614923d773c2655accbdec7f1841afa
[GVN][NFC] Mark instruction for deletion instead of immediate erasing in LoadPRE

It is done to uniformly handle instructions removal.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316884 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/GVN.cpp