[PATCH] D113872: [CGP] Handle select instructions relying on the same condition

Kai Luo via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jan 14 00:43:19 PST 2022


lkail added a comment.

> Are we trying to prevent simplifycfg from making transformations, or to instead trick it into transforming the patteren?

Trying to prevent simplifycfg from making branch -> select transformation. Sometimes, the cost to calculate both true operand and false operand of a `select` instruction is larger than branching.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D113872



More information about the llvm-commits mailing list