aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/ModuleBuilder.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2022-06-13 08:50:50 -0700
committerCraig Topper <craig.topper@sifive.com>2022-06-13 09:07:57 -0700
commitcef03e3dcd5b435e92f70288dab80a6f6313efe1 (patch)
tree1b05202b84cc75cb38be5bfcbcea1ae48783757b /clang/lib/CodeGen/ModuleBuilder.cpp
parentc36870c8e79c1690432076c69cb98a879555efa8 (diff)
downloadllvm-cef03e3dcd5b435e92f70288dab80a6f6313efe1.zip
llvm-cef03e3dcd5b435e92f70288dab80a6f6313efe1.tar.gz
llvm-cef03e3dcd5b435e92f70288dab80a6f6313efe1.tar.bz2
[RISCV] Move creation of constant pools from isel to lowering.
This simplifies the isel code by removing the manual load creation. It also improves our ability to use 0 strided loads for vector splats. There is an assumption here that Mask and ShiftedMask constants are cheap enough that they don't become constant pool loads so that our isel optimizations involving And still work. I believe those constants are 3 instructions in the worst case. The rv64zbp-intrinsic.ll changes is a regression caused by intrinsics being expanded to RISCVISD also occuring during lowering. So the optimizations were only happening during the last DAGCombine, which can't see through the load. I believe we can fix this test by implementing TargetLowering::getTargetConstantFromLoad for RISC-V or by adding the intrinsic to computeKnownBitsForTargetNode to enable earlier DAG combine. Since Zbp is not a ratified extension, I don't view these as blocking this patch. Reviewed By: reames Differential Revision: https://reviews.llvm.org/D127520
Diffstat (limited to 'clang/lib/CodeGen/ModuleBuilder.cpp')
0 files changed, 0 insertions, 0 deletions