diff options
author | Sanjay Patel <spatel@rotateright.com> | 2021-09-01 14:33:04 -0400 |
---|---|---|
committer | Sanjay Patel <spatel@rotateright.com> | 2021-09-01 14:34:22 -0400 |
commit | 8a10f4a0f661a11715ab0430c2b3b27a8f36267e (patch) | |
tree | 33bd1f227da13f5fe8abf0cbc1b837db6d10f1ef /clang/unittests/Basic/FileManagerTest.cpp | |
parent | b9b419a13c7f7b2b8e391b5fb7cbc34d69dd5db3 (diff) | |
download | llvm-8a10f4a0f661a11715ab0430c2b3b27a8f36267e.zip llvm-8a10f4a0f661a11715ab0430c2b3b27a8f36267e.tar.gz llvm-8a10f4a0f661a11715ab0430c2b3b27a8f36267e.tar.bz2 |
[InstCombine] use isFreeToInvert to generalize min/max with 'not'
This mimics the code for the corresponding cmp-select idiom.
This also prevents an infinite loop because isFreeToInvert
does not match constant expressions.
So this patch solves the same problem as D108814 and obsoletes
it, but my main motivation is to enhance the pattern matching
to allow more invertible ops. That change will be a follow-up
patch on top of this one.
Differential Revision: https://reviews.llvm.org/D109058
Diffstat (limited to 'clang/unittests/Basic/FileManagerTest.cpp')
0 files changed, 0 insertions, 0 deletions