aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2022-04-19 14:38:23 -0700
committerCraig Topper <craig.topper@sifive.com>2022-04-19 15:03:43 -0700
commit6db0afb44e13cf5f3d3261387079b32358966a61 (patch)
tree736fc7bf4c5e0cf172df7ac0bb570ab912af33c2 /llvm/lib/Bitcode/Writer/BitcodeWriter.cpp
parente3cf1535220128ed9e7c3ba77cc074318461302d (diff)
downloadllvm-6db0afb44e13cf5f3d3261387079b32358966a61.zip
llvm-6db0afb44e13cf5f3d3261387079b32358966a61.tar.gz
llvm-6db0afb44e13cf5f3d3261387079b32358966a61.tar.bz2
[RISCV] Fold (xor (sllw 1, x), -1) -> (rolw ~1, x).
There's an existing generic combine that does this for legal types. This patch adds a RISCV specific combine for W instructions. Reviewed By: luismarques Differential Revision: https://reviews.llvm.org/D123983
Diffstat (limited to 'llvm/lib/Bitcode/Writer/BitcodeWriter.cpp')
0 files changed, 0 insertions, 0 deletions