aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/BackendUtil.cpp
diff options
context:
space:
mode:
authorLuke Quinn <quic_lquinn@quicinc.com>2025-01-07 21:53:10 -0500
committerGitHub <noreply@github.com>2025-01-07 18:53:10 -0800
commitdde5546b79f784ab71cac325e0a0698c67c4dcde (patch)
tree309ff0a1eff51a931d143c139abd91f224c7c349 /clang/lib/CodeGen/BackendUtil.cpp
parent4583f6d3443c8dc6605c868724e3743161954210 (diff)
downloadllvm-dde5546b79f784ab71cac325e0a0698c67c4dcde.zip
llvm-dde5546b79f784ab71cac325e0a0698c67c4dcde.tar.gz
llvm-dde5546b79f784ab71cac325e0a0698c67c4dcde.tar.bz2
[RISCV] GISel custom lowering for G_ADD/G_SUB (#121587)
Custom lowering for s32 G_ADD/SUB to help match selection dag better. Specifically for RV64 a s32 is produced as a add+sext the output this allows for fewer instructions to sign extend a couple patterns. Allows for the generation of addiw,subw,negw to reduce required instructions to load values quicker Log2_ceil_i32 in rvzbb.ll shows a more obvious improvement case.
Diffstat (limited to 'clang/lib/CodeGen/BackendUtil.cpp')
0 files changed, 0 insertions, 0 deletions