Wasm does not support function addresses with offsets, but isel can
generate folded SDValues in the form of (@func + offset) without this
patch.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
I love how precise this patch is. Does exactly what we need.
llvm/test/CodeGen/WebAssembly/function-pointer-offset.ll | ||
---|---|---|
19 | Seems odd not to have any checks here other than the successful compile.. but maybe just the fact that we don't see the fatal error is enough? Perhaps mention that if folding did occur a fatal error would be generated in the backend? |
llvm/test/CodeGen/WebAssembly/function-pointer-offset.ll | ||
---|---|---|
19 | Yeah this shouldn't crash. But added some CHECK lines too, and added a description that this shouldn't crash in MCInstLower. |
Comment Actions
Maybe add Fixes: https://bugs.llvm.org/show_bug.cgi?id=43133 to the description?
lgtm but maybe wait for final review from @dschuff
Seems odd not to have any checks here other than the successful compile.. but maybe just the fact that we don't see the fatal error is enough? Perhaps mention that if folding did occur a fatal error would be generated in the backend?