]> granicus.if.org Git - llvm/commit
[CGP] Remove ModifiedDT from the makeBitReverse loop
authorCraig Topper <craig.topper@intel.com>
Mon, 19 Aug 2019 18:02:24 +0000 (18:02 +0000)
committerCraig Topper <craig.topper@intel.com>
Mon, 19 Aug 2019 18:02:24 +0000 (18:02 +0000)
commitcd760708857c61e4aa2a08e7bd26bd0480d08793
treefd5dfe1c0256a548f93b38136e8e3c8bfd155d31
parent0adc6524a13d140459a0a4f3d93f9bf5f33b50e0
[CGP] Remove ModifiedDT from the makeBitReverse loop

I don't think anything in this loop modifies the control flow and we don't restart any iteration after setting the flag.

This code was added in http://reviews.llvm.org/D16893 but looking at the test case added there the code that caused the dominator tree to change was merging blocks with their predecessor not the bitreverse optimization.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@369283 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CodeGenPrepare.cpp