[llvm] [SimplifyCFG] Fix hoisting problem in SimplifyCFG (PR #78615)

Quentin Dian via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 21 17:45:40 PST 2024


================
@@ -1742,15 +1767,6 @@ bool SimplifyCFGOpt::hoistCommonCodeFromSuccessors(BasicBlock *BB,
       continue;
     }
 
-    SmallVector<Instruction *, 8> OtherInsts;
-    if (SameLevelHoist) { 
----------------
DianQK wrote:

Why did you remove `SameLevelHoist`?
I think it makes sense. You can build the hash map when you can't hoist at the same level. This can reduce the size of it.

https://github.com/llvm/llvm-project/pull/78615


More information about the llvm-commits mailing list