aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/AST/ByteCode/Compiler.cpp
diff options
context:
space:
mode:
authorMin-Yih Hsu <min.hsu@sifive.com>2025-09-03 21:20:47 -0700
committerGitHub <noreply@github.com>2025-09-03 21:20:47 -0700
commita4104abb2b4392deeeb0806a005b3f8b564cb126 (patch)
tree4be7ee97579ae5f00f17d1a7fc1a717143afb553 /clang/lib/AST/ByteCode/Compiler.cpp
parent4e348bf628566b323790a02a85433cfdf8a482cb (diff)
downloadllvm-a4104abb2b4392deeeb0806a005b3f8b564cb126.zip
llvm-a4104abb2b4392deeeb0806a005b3f8b564cb126.tar.gz
llvm-a4104abb2b4392deeeb0806a005b3f8b564cb126.tar.bz2
[RISCV] Fold (vslide1up undef, v, (extract_elt x, 0)) into (vslideup x, v, 1) (#154847)
To a slide1up, if the scalar value we're sliding in was extracted from the first element of a vector, we can use a normal vslideup of 1 instead with its passthru being that vector. This can eliminate an extract_element instruction (i.e. vfmv.f.s, vmv.x.s). --------- Co-authored-by: Craig Topper <craig.topper@sifive.com>
Diffstat (limited to 'clang/lib/AST/ByteCode/Compiler.cpp')
0 files changed, 0 insertions, 0 deletions