aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Basic/Module.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2023-09-27 21:48:41 -0700
committerGitHub <noreply@github.com>2023-09-27 21:48:41 -0700
commitc75e3ea4bd0562c06058f5b5ea4e5102ae3f3842 (patch)
tree278d7f084d48db87452bde0605b633c86d760cc1 /clang/lib/Basic/Module.cpp
parent53a87b4a6903c0c47337ca18697bb6355cc087d4 (diff)
downloadllvm-c75e3ea4bd0562c06058f5b5ea4e5102ae3f3842.zip
llvm-c75e3ea4bd0562c06058f5b5ea4e5102ae3f3842.tar.gz
llvm-c75e3ea4bd0562c06058f5b5ea4e5102ae3f3842.tar.bz2
[RISCV] Improve constant materialization by using a sequence that end… (#66943)
…s with 2 addis in some cases. If the lower 13 bits are something like 0x17ff, we can first materialize it as 0x1800 followed by an addi to subtract a small offset. This might be cheaper to materialize since the constant ending in 0x1800 can use a simm12 immediate for its final addi.
Diffstat (limited to 'clang/lib/Basic/Module.cpp')
0 files changed, 0 insertions, 0 deletions