[llvm] [RISCV] Improve contant materialization to end with 'not' if the cons… (PR #66950)

Philip Reames via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 20 16:17:32 PDT 2023


https://github.com/preames approved this pull request.

LGTM - trying the negate seems like a reasonable idea.  

As a follow up, could we use a sra to sign extend a leading one bit?  Would that ever be better than inverting?  

https://github.com/llvm/llvm-project/pull/66950


More information about the llvm-commits mailing list