diff options
author | Jay Foad <jay.foad@amd.com> | 2022-07-18 16:09:41 +0100 |
---|---|---|
committer | Jay Foad <jay.foad@amd.com> | 2022-08-22 20:03:53 +0100 |
commit | f82c55fa082711f520a7359393b483956b69bf08 (patch) | |
tree | 2a7669f7ad120adbda68d26b14d75e70e714d420 /llvm/lib/CodeGen/MachinePipeliner.cpp | |
parent | 2754ff883d9ebf5452a10a2b739262b481cb3458 (diff) | |
download | llvm-f82c55fa082711f520a7359393b483956b69bf08.zip llvm-f82c55fa082711f520a7359393b483956b69bf08.tar.gz llvm-f82c55fa082711f520a7359393b483956b69bf08.tar.bz2 |
[InstCombine] Change order of canonicalization of ADD and AND
Canonicalize ((x + C1) & C2) --> ((x & C2) + C1) for suitable constants
C1 and C2, instead of the other way round. This should allow more
constant ADDs to be matched as part of addressing modes for loads and
stores.
Differential Revision: https://reviews.llvm.org/D130080
Diffstat (limited to 'llvm/lib/CodeGen/MachinePipeliner.cpp')
0 files changed, 0 insertions, 0 deletions