diff options
author | Luke Lau <luke@igalia.com> | 2025-09-04 11:56:29 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-09-04 11:56:29 +0800 |
commit | a95edec28a4900d15f6fce17561964071600609a (patch) | |
tree | 409dd4d43f83f1cab9585ea6d85e3be96440804a /clang/lib/AST/ByteCode/Compiler.cpp | |
parent | 71b64bc5c75c9d8466a962d27b852f60250319bd (diff) | |
download | llvm-a95edec28a4900d15f6fce17561964071600609a.zip llvm-a95edec28a4900d15f6fce17561964071600609a.tar.gz llvm-a95edec28a4900d15f6fce17561964071600609a.tar.bz2 |
[RISCV] Use vleff's AVL when output VL doesn't dominate in RISCVVLOptimizer (#156618)
If an instruction's demanded VL is a virtual register defined by a vleff
instruction, it might not dominate and fail to have its VL reduced.
In leiu of the output VL, we can try and use the AVL passed to the vleff
itself since it will be at least greater than or equal the original VL.
I tried to create an LLVM IR test for this in but didn't have any luck
because the scheduler kept on moving the instruction past the vleff, so
it always dominated. So I've just included some mir tests instead.
Diffstat (limited to 'clang/lib/AST/ByteCode/Compiler.cpp')
0 files changed, 0 insertions, 0 deletions