commit | 2d11a45a5078d4d70c048d64c2b21d8856b7c3c5 | [log] [tgz] |
---|---|---|
author | Craig Topper <craig.topper@sifive.com> | Mon Feb 15 12:33:14 2021 -0800 |
committer | Copybara-Service <copybara-worker@google.com> | Fri Feb 19 02:43:03 2021 -0800 |
tree | c91b260b83942518acc8cbc69f1a455be2521415 | |
parent | a274623da64a5aed49c11328f881eab17bde3354 [diff] |
[RISCV][LegalizeTypes] Try to expand BITREVERSE before promoting if the promoted BITREVERSE would expand anyway. If we're going to end up expanding anyway, we should do it early so we don't create extra operations to handle the bytes added by promotion. Simlilar was done for BSWAP previously. Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D96681 GitOrigin-RevId: eb75f250feb6822d57be95e8535e28724cde6e9d