[PATCH] D105918: [SelectionDAG][RISCV] Use isSExtCheaperThanZExt to control whether sext or zext is used for constant folding any_extend.

Jessica Clarke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jul 16 09:30:52 PDT 2021


jrtc27 added a comment.

I think re-using the hook is fine. The existing uses are about any value of that type, whereas this use is about a specific value of that type which _might_ have a different answer, but until a situation arises where the distinction is important adding a new hook seems unnecessary.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D105918



More information about the llvm-commits mailing list