[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)
commit93c27871936c797380aef9d47a969c088edb0bff
treebf580d797afb26537669045c7a16c7471e15e517
parentab00f237ac9db0fb91120bf4a5454f44ad31cf7a
[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

llvm-svn: 369283
llvm/lib/CodeGen/CodeGenPrepare.cpp