[PATCH] D52975: [TargetLowering][RISCV] Introduce getExtendForShiftAmount and implement for RISC-V

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Oct 8 18:38:59 PDT 2018


efriedma added a comment.

> I was hoping there was an opportunity here to avoid the need for backend-specific peepholes

It's possible there's some room for improvement here, to add some target-independent infrastructure for shift instructions that mask the shift amount.  But nothing exists at the moment, and I'm not sure what the best approach would be.


https://reviews.llvm.org/D52975





More information about the llvm-commits mailing list