[PATCH] D86634: [AMDGPU] SILowerControlFlow::optimizeEndCF should remove empty basic block

Alexander via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 27 12:39:08 PDT 2020


alex-t marked 8 inline comments as done.
alex-t added inline comments.


================
Comment at: llvm/lib/Target/AMDGPU/SILowerControlFlow.cpp:158
     AU.addPreservedID(MachineLoopInfoID);
     AU.addPreservedID(MachineDominatorsID);
-    AU.setPreservesCFG();
----------------
rampitec wrote:
> Does it preserve MDT and MLI now?
yes. your initial assumption was a chain of single successors. So, if we remove block, we remove it from that chain.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D86634/new/

https://reviews.llvm.org/D86634



More information about the llvm-commits mailing list