aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Object/WasmObjectFile.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2024-01-03 12:04:43 -0800
committerCraig Topper <craig.topper@sifive.com>2024-01-03 12:17:57 -0800
commitf64d1c810a2b8d89c3760cefb957da499c087404 (patch)
tree4d31a61d72f904851469c402073fe31db39e4a1f /llvm/lib/Object/WasmObjectFile.cpp
parent47a1704ac94c8aeb1aa7e0fc438ff99d36b632c6 (diff)
downloadllvm-f64d1c810a2b8d89c3760cefb957da499c087404.zip
llvm-f64d1c810a2b8d89c3760cefb957da499c087404.tar.gz
llvm-f64d1c810a2b8d89c3760cefb957da499c087404.tar.bz2
[RISCV] Add test cases for folding disjoint Or into a scalar load address. NFC
After 47a1704ac94c8aeb1aa7e0fc438ff99d36b632c6 we are able to reassociate a disjoint Or used as a GEP index to get the constant closer to a load to fold it. This is show by the first test. We are not able to do this if the GEP created a shift left to scale the index as the second test shows. To make this work, we need to preserve the disjoint flag when pulling the Or through the shift.
Diffstat (limited to 'llvm/lib/Object/WasmObjectFile.cpp')
0 files changed, 0 insertions, 0 deletions