aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
diff options
context:
space:
mode:
authorLuke Lau <luke@igalia.com>2023-07-11 17:52:23 +0100
committerLuke Lau <luke@igalia.com>2023-07-19 17:24:40 +0100
commit0f277ab3616a16748303c673f1b7c279d5d238d3 (patch)
treee2e4e0a92579095c855c38c7d5e14883c7b38dcb /llvm/lib/Transforms/Utils/BasicBlockUtils.cpp
parent66dc29a82a7c9a5827caea98847be7547e451431 (diff)
downloadllvm-0f277ab3616a16748303c673f1b7c279d5d238d3.zip
llvm-0f277ab3616a16748303c673f1b7c279d5d238d3.tar.gz
llvm-0f277ab3616a16748303c673f1b7c279d5d238d3.tar.bz2
[RISCV] Fold vmerge into its ops with smaller VL if known
Currently when folding vmerge into its operands, we stop if the VLs aren't identical. However since the body of (vmerge (vop)) is the intersection of vmerge and vop's bodies, we can use the smaller of the two VLs if we know it ahead of time. This patch relaxes the constraint on VL if they are both constants, or if either of them are VLMAX. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D155071
Diffstat (limited to 'llvm/lib/Transforms/Utils/BasicBlockUtils.cpp')
0 files changed, 0 insertions, 0 deletions