aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
diff options
context:
space:
mode:
authorPhilip Reames <preames@rivosinc.com>2023-01-31 07:44:53 -0800
committerPhilip Reames <listmail@philipreames.com>2023-01-31 07:49:54 -0800
commitec0f0ecd48e99ebecd224585c04c67a177543fa1 (patch)
tree6a663fa00c6f12e829377b15ab87b1107bf42eb1 /llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp
parent8aa313755118bf43c6042fb316b6c243b2c59be2 (diff)
downloadllvm-ec0f0ecd48e99ebecd224585c04c67a177543fa1.zip
llvm-ec0f0ecd48e99ebecd224585c04c67a177543fa1.tar.gz
llvm-ec0f0ecd48e99ebecd224585c04c67a177543fa1.tar.bz2
[RISCV] Add asserts that we don't increase codesize during pseudo expansion
We currently assume that pseudo expansion doesn't increase the distance between a branch and it's label. This patch adds some asserts to catch violations of this property in pseudo expansion. I chose to only do the assertion at the function level as we have to scan the whole function for size changes (since expansion can create multiple blocks). We could cache individual block sizes, and thus make the check cheap enough to do after every expansion, but that requires more complex code. Differential Revision: https://reviews.llvm.org/D142777
Diffstat (limited to 'llvm/lib/Target/WebAssembly/WebAssemblyTargetMachine.cpp')
0 files changed, 0 insertions, 0 deletions