aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2022-08-19 11:42:40 -0700
committerCraig Topper <craig.topper@sifive.com>2022-08-19 13:51:53 -0700
commit6227b7ae313d8bb45cd271208b5e6da389795690 (patch)
treea1f042ecb23011b11f26b49fd88c366f7d9667b3 /clang/lib/Frontend/CompilerInvocation.cpp
parentd0e03bf06b2a7c05d8c478845282a68cba7cdda2 (diff)
downloadllvm-6227b7ae313d8bb45cd271208b5e6da389795690.zip
llvm-6227b7ae313d8bb45cd271208b5e6da389795690.tar.gz
llvm-6227b7ae313d8bb45cd271208b5e6da389795690.tar.bz2
[RISCV] Move xori creation for scalar setccs to lowering.
This patch enables expansion or custom lowering for some integer condition codes so that any xori that is needed is created before the last DAG combine to enable optimization. I've seen cases where we end up with (or (xori (setcc), 1), (xori (setcc), 1)) which we would ideally convert to (xori (and (setcc), (setcc)), 1). This patch doesn't accomplish that yet, but it should allow us to add DAG combines as follow ups. Example https://godbolt.org/z/Y4qnvsq1b Reviewed By: reames Differential Revision: https://reviews.llvm.org/D131729
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions