diff options
author | Florian Hahn <flo@fhahn.com> | 2025-04-13 12:09:40 +0100 |
---|---|---|
committer | Florian Hahn <flo@fhahn.com> | 2025-04-13 12:09:40 +0100 |
commit | 0f607f3df54e22896b484510f0c1ccfb718de67a (patch) | |
tree | 7a2152c9f1ab86e2c34679d01cbb09aae0f2547d /llvm/lib/Transforms/Utils/SimplifyCFG.cpp | |
parent | 09588e93bbe486ce782de9fba604f5cd184ec446 (diff) | |
download | llvm-0f607f3df54e22896b484510f0c1ccfb718de67a.zip llvm-0f607f3df54e22896b484510f0c1ccfb718de67a.tar.gz llvm-0f607f3df54e22896b484510f0c1ccfb718de67a.tar.bz2 |
[VPlan] Simplify 'or x, true' -> true.
Add additional OR simplification to fix a divergence between legacy and
VPlan-based cost model.
This adds a new m_AllOnes matcher by generalizing specific_intval to
int_pred_ty, which takes a predicate to check to support matching both
specific APInts and other APInt predices, like isAllOnes.
Fixes https://github.com/llvm/llvm-project/issues/131359.
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
0 files changed, 0 insertions, 0 deletions