diff options
author | wanglei <wanglei@loongson.cn> | 2025-03-28 11:20:17 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-03-28 11:20:17 +0800 |
commit | d055e58334a91dcbaee22eb87bcdae85a1f33cd4 (patch) | |
tree | e4e712ba0eee86dfa3917775954a8b2ff5efac16 /llvm/lib/CodeGen/CodeGenPrepare.cpp | |
parent | cb80b26e3731e7b10ff516d66761a3cfbc55bd20 (diff) | |
download | llvm-d055e58334a91dcbaee22eb87bcdae85a1f33cd4.zip llvm-d055e58334a91dcbaee22eb87bcdae85a1f33cd4.tar.gz llvm-d055e58334a91dcbaee22eb87bcdae85a1f33cd4.tar.bz2 |
[LoongArch][MC] Add relocation support for fld fst [x]vld [x]vst
This also fixes errors when using Clang with step-by-step compilation.
Because the optimization will pass relocation information to memory
access instructions. For example:
t.c:
```
float f = 0.1;
float foo() { return f;}
```
```
clang --target=loongarch64 -O2 -c t.c --save-temps
```
Reviewed By: tangaac, SixWeining
Pull Request: https://github.com/llvm/llvm-project/pull/133225
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
0 files changed, 0 insertions, 0 deletions