Separate the part which is specific for assume intrinsic from the part which only requires an icmp,
so that the latter could be reused for other purposes (e.g. in dominating conditions).
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
This change causes build failures for builds that eliminate asserts:
llvm-project/llvm/lib/Analysis/ValueTracking.cpp:895:12: error: unused variable 'BitWidth' [-Werror,-Wunused-variable]
unsigned BitWidth = Known.getBitWidth(); ^
1 error generated.
(After your commit, BitWidth is only used in assert statements).