[llvm-dev] Basic block merging

Michael Kruse via llvm-dev llvm-dev at lists.llvm.org
Wed May 29 14:17:11 PDT 2019


Am Mi., 29. Mai 2019 um 15:02 Uhr schrieb Shawn Landden <slandden at gmail.com>:
> > The question is, whether the improvement justifies the additional cost
> > of identifying isomorphic blocks.
> Could the merge-functions pass be somehow modified to also do this? in
> a way that would require code duplication, with the common code
> refactored out.

There is FunctionComparator::cmpBasicBlocks to determine block
isomorphism. Looks like it requires instructions to be in the exact
same order.

Michael


More information about the llvm-dev mailing list