Try to use gt/lt compares with 0 instead of class.
Details
Diff Detail
Event Timeline
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | ||
---|---|---|
845–848 | It is already handled, this is called twice. The second time with the inverted mask (so actually we have some redundant cases here). I could either expand all the cases here and stop doing the invert trick, or trim the redundant cases |
Round out a few more combinations, although technically redundant. Could further expand these and stop calling this with the inverse mask
"returns true" needs updating.