aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorKonstantina Mitropoulou <Konstantina.Mitropoulou@amd.com>2023-07-20 22:16:15 -0700
committerKonstantina Mitropoulou <Konstantina.Mitropoulou@amd.com>2023-08-08 20:08:01 -0700
commit2c5d1b5ab7034be70eb3c6249b9a2fd512ffb658 (patch)
tree46e0179dc4eadc99a140cc31742b8f994293a86a /clang/lib/Frontend/CompilerInvocation.cpp
parent51202b8d2ed1dea731b5df31c0e10d3046c5c9ea (diff)
downloadllvm-2c5d1b5ab7034be70eb3c6249b9a2fd512ffb658.zip
llvm-2c5d1b5ab7034be70eb3c6249b9a2fd512ffb658.tar.gz
llvm-2c5d1b5ab7034be70eb3c6249b9a2fd512ffb658.tar.bz2
[DAGCombiner] Reassociate the operands from (OR (OR(CMP1, CMP2)), CMP3) to (OR (OR(CMP1, CMP3)), CMP2)
This happens when CMP1 and CMP3 have the same predicate (or CMP2 and CMP3 have the same predicate). This helps optimizations such as the fololowing one: CMP(A,C)||CMP(B,C) => CMP(MIN/MAX(A,B), C) CMP(A,C)&&CMP(B,C) => CMP(MIN/MAX(A,B), C) Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D156215
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions