diff options
author | Sanjay Patel <spatel@rotateright.com> | 2022-02-15 08:18:11 -0500 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2022-02-15 08:31:23 -0500 |
commit | 6357ccf57fd5d5c60ffddd611a3f5510b52c2b9c (patch) | |
tree | d258764924fdad0c3c391e8537e559b81872248c /clang/lib/CodeGen/CodeGenFunction.cpp | |
parent | 1cd6454ade3953a9e9a71b4c832bed9857bf5ef2 (diff) | |
download | llvm-6357ccf57fd5d5c60ffddd611a3f5510b52c2b9c.zip llvm-6357ccf57fd5d5c60ffddd611a3f5510b52c2b9c.tar.gz llvm-6357ccf57fd5d5c60ffddd611a3f5510b52c2b9c.tar.bz2 |
[InstCombine] reassociate min/max intrinsics with constant operands
Integer min/max operations are associative:
max (max X, C0), C1 --> max X, (max C0, C1) --> max X, NewC
https://alive2.llvm.org/ce/z/wW5HVM
This would avoid a regression when we canonicalize to min/max intrinsics
(see D98152 ).
Differential Revision: https://reviews.llvm.org/D119754
Diffstat (limited to 'clang/lib/CodeGen/CodeGenFunction.cpp')
0 files changed, 0 insertions, 0 deletions