[PATCH] D58210: [SelectionDAGLegalize] Improve promotion of CTLZ

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 14 14:30:27 PST 2019


spatel added a comment.

@jonpa - IIRC, some targets infinite loop if we always allow the generic trunc fold in DAGCombiner after legalization, but you might be able to constrain it using the existing TLI hooks:
IsDesirableToPromoteOp()
isTypeDesirableForOp()


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

https://reviews.llvm.org/D58210





More information about the llvm-commits mailing list