aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/CodeGen/CodeGenFunction.cpp
diff options
context:
space:
mode:
authorLuke Lau <luke@igalia.com>2025-01-06 19:23:21 +0800
committerGitHub <noreply@github.com>2025-01-06 19:23:21 +0800
commitb359c84f3ad68457048740b3d259258d3722eeed (patch)
treefa6861ace111c5851ec36ce0b0bd4c18feb8389b /clang/lib/CodeGen/CodeGenFunction.cpp
parentef2afa1e83fad5f813e5d12f4a88acbaf8cf85fe (diff)
downloadllvm-b359c84f3ad68457048740b3d259258d3722eeed.zip
llvm-b359c84f3ad68457048740b3d259258d3722eeed.tar.gz
llvm-b359c84f3ad68457048740b3d259258d3722eeed.tar.bz2
[RISCV] Don't commute with shift if it would break sh{1,2,3}add pattern (#119527)
This fixes a regression from #101294 by checking if we might be clobbering a sh{1,2,3}add pattern. Only do this is the underlying add isn't going to be folded away into an address offset.
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions