boomanaiden154 wrote:

So I think my current approach (deleting the basic block) is invalid because we 
might have other branches to that basic block that we're not rewriting. I think 
we want to delete the terminator of the previous block and let it fall through.

I also did some analysis on clang, and it turns out using clang to build clang 
in my configuration (x86-64 Linux) produces 6 redundant branch instructions, 
but they're all unconditional. So it would be good to generalize this to 
conditional and non-conditional branches.

https://github.com/llvm/llvm-project/pull/203110
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to