aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2021-08-18 17:02:55 -0400
committerSanjay Patel <spatel@rotateright.com>2021-08-19 08:41:38 -0400
commite10c3beca5590fc7df099ab7c173a9a4a21de9d1 (patch)
tree1ef6f289593e1dca61f02deda799995855878dce /llvm/lib/Transforms/Utils/Local.cpp
parent77579b99e9ce1638ca696fa7c3872ae8668d997d (diff)
downloadllvm-e10c3beca5590fc7df099ab7c173a9a4a21de9d1.zip
llvm-e10c3beca5590fc7df099ab7c173a9a4a21de9d1.tar.gz
llvm-e10c3beca5590fc7df099ab7c173a9a4a21de9d1.tar.bz2
[InstCombine] add one-use check for min/max fold with not operands; NFC
This makes the intrinsic logic match the cmp+select idiom folds just below. It's not clearly a win either way unless we think that a 'not' op costs more than min/max. The cmp+select folds on these patterns are more extensive than the intrinsics currently and may have some complicated interactions, so I'm trying to make those line up and bring the optimizations for intrinsics up to parity.
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions