Skip to content
Commit 9c837b7d authored by Zhongyunde's avatar Zhongyunde
Browse files

[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
parent 08dc847d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment