[PATCH] D95741: [RISCV] Optimize sign-extended EXTRACT_VECTOR_ELT nodes
Fraser Cormack via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 1 05:17:09 PST 2021
frasercrmck added a comment.
In D95741#2532351 <https://reviews.llvm.org/D95741#2532351>, @craig.topper wrote:
> Would it still work if we let scalar types promote using the default type legalization and instead just Custom handle the vector type and change the opcode from LegalizeDAG?
>From what I could see, no: the type-legalized `sign_extend_inreg` node is expanded to `shl/sra` before the `extract_vector_elt` node. I think at that point we're unable to do much. Does that sound reasonable to you?
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95741/new/
https://reviews.llvm.org/D95741
More information about the llvm-commits
mailing list