diff options
author | Zhongyunde <zhongyunde@huawei.com> | 2023-08-04 09:06:12 +0800 |
---|---|---|
committer | Zhongyunde <zhongyunde@huawei.com> | 2023-08-04 09:06:34 +0800 |
commit | 9c837b7d0e2e2dffae804f3df49c4aeefe4743c0 (patch) | |
tree | f3ec5999c64c277702253b0c356c739a4ecfbb94 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 08dc847d55fbdfa7ff6cb8034633139df0199562 (diff) | |
download | llvm-9c837b7d0e2e2dffae804f3df49c4aeefe4743c0.zip llvm-9c837b7d0e2e2dffae804f3df49c4aeefe4743c0.tar.gz llvm-9c837b7d0e2e2dffae804f3df49c4aeefe4743c0.tar.bz2 |
[ValueTracking] Improve the coverage of isKnownToBeAPowerOfTwo for vscale
this PR tries to match the following pattern, seperate from D156881
```
%vscale = call i64 @llvm.vscale.i64()
%shift = shl nuw nsw i64 %vscale, 11
```
Now, we only check the shl recursively when the OrZero is true.
Reviewed By: goldstein.w.n
Differential Revision: https://reviews.llvm.org/D157062
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions