diff options
author | Allen <zhongyunde@huawei.com> | 2024-07-12 09:06:42 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-12 09:06:42 +0800 |
commit | 1bafe77d773e6cb32243fabbef2c71b4516896fb (patch) | |
tree | db7d2f0513547dfe050eea5b5f312b95a4610280 /clang/lib/CodeGen/CodeGenModule.h | |
parent | 941f794e492bddf82b01dd4b0cb3475a67dc3b1f (diff) | |
download | llvm-1bafe77d773e6cb32243fabbef2c71b4516896fb.zip llvm-1bafe77d773e6cb32243fabbef2c71b4516896fb.tar.gz llvm-1bafe77d773e6cb32243fabbef2c71b4516896fb.tar.bz2 |
[AArch64] Improve the codegen for sdiv 2 (#98324)
Same as X86, , if X's size is BitWidth, then X sdiv 2 can be
expressived as
```
X += X >> (BitWidth - 1)
X = X >> 1
```
Fix https://github.com/llvm/llvm-project/issues/97884
Diffstat (limited to 'clang/lib/CodeGen/CodeGenModule.h')
0 files changed, 0 insertions, 0 deletions