diff options
author | Craig Topper <craig.topper@sifive.com> | 2022-08-24 15:37:48 -0700 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2022-08-25 08:49:30 -0700 |
commit | ec91d761ac03378456fe0528e0fe8ea4dd70927c (patch) | |
tree | 8c4e404d96688c19b436dae7e780b1e2189708c4 /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 3edec9ba602c1ed5904e5bbcd8986dcd05fe3a83 (diff) | |
download | llvm-ec91d761ac03378456fe0528e0fe8ea4dd70927c.zip llvm-ec91d761ac03378456fe0528e0fe8ea4dd70927c.tar.gz llvm-ec91d761ac03378456fe0528e0fe8ea4dd70927c.tar.bz2 |
[RISCV] Apply DeMorgan's law to (and/or (xor X, 1), (xor Y, 1)) if X and Y are 0/1.
This optimizes xors that appear due to legalizing setge/setle which
require an xor with 1. This reduces the number of xors and may
allow the xor to fold with a beqz or bnez.
Differential Revision: https://reviews.llvm.org/D132614
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions