[all-commits] [llvm/llvm-project] 4c42ab: [DAGCombiner] Change foldAndOrOfSETCC() to optimiz...
Konstantina Mitropoulou via All-commits
all-commits at lists.llvm.org
Mon Jul 17 17:14:29 PDT 2023
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 4c42ab1199e9729c2f3a74f77ba765e4f9190d57
https://github.com/llvm/llvm-project/commit/4c42ab1199e9729c2f3a74f77ba765e4f9190d57
Author: Konstantina Mitropoulou <Konstantina.Mitropoulou at amd.com>
Date: 2023-07-17 (Mon, 17 Jul 2023)
Changed paths:
M llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
M llvm/test/CodeGen/AArch64/vecreduce-bool.ll
M llvm/test/CodeGen/AMDGPU/combine-cond-add-sub.ll
M llvm/test/CodeGen/AMDGPU/combine_andor_with_cmps.ll
M llvm/test/CodeGen/PowerPC/setcc-logic.ll
M llvm/test/CodeGen/RISCV/zbb-cmp-combine.ll
M llvm/test/CodeGen/X86/movmsk-cmp.ll
Log Message:
-----------
[DAGCombiner] Change foldAndOrOfSETCC() to optimize and/or patterns
CMP(A,C)||CMP(B,C) => CMP(MIN/MAX(A,B), C)
CMP(A,C)&&CMP(B,C) => CMP(MIN/MAX(A,B), C)
This first patch handles integer types.
Reviewed By: craig.topper
Differential Revision: https://reviews.llvm.org/D153502
More information about the All-commits
mailing list