Added support to deduce PHI Nodes values being a power of 2 in ValueTracking. This enables more optimizations in applications such as calculating alignment.
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Unit Tests
Unit Tests
Event Timeline
llvm/test/Analysis/ValueTracking/known-power-of-two-urem.ll | ||
---|---|---|
1 | Please use utils/update_test_checks.py |
llvm/lib/Analysis/ValueTracking.cpp | ||
---|---|---|
2028 | run a clang-format on the changed part. | |
2045 | typo: induction | |
llvm/test/Analysis/ValueTracking/known-power-of-two-urem.ll | ||
26 | Please also add tests for
|
clang-format: please reformat the code