[PATCH] D118066: [SimplifyCFG] Don't speculatively execute preductably-taken block

Kai Luo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 25 22:49:22 PST 2022


lkail added a comment.

> If we predict it to be taken, isn't flattening it, and incurring the cost of a select

I think the cost of branch instruction(not including mispredict cost) can't be ignored. The fallthrough basicblock doesn't need branch instruction, but the other does. If we got multiple selects, branch might be a win.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D118066



More information about the llvm-commits mailing list