smax(Abs(X, t/f), X) --> Abs(X)
umin(Abs(X, t/f), X) --> Abs(X)
smin(Abs(X, t/f), X) --> X
umax(Abs(X, t/f), X) --> X
Paths
| Differential D145458
[InstSimplify] Add simplifications for `min/max(Abs(X), X)` Needs RevisionPublic Authored by goldstein.w.n on Mar 6 2023, 6:07 PM.
Details Summary smax(Abs(X, t/f), X) --> Abs(X) umin(Abs(X, t/f), X) --> Abs(X) smin(Abs(X, t/f), X) --> X umax(Abs(X, t/f), X) --> X
Diff Detail
Event TimelineThis revision now requires changes to proceed.Mar 9 2023, 7:16 AM
Revision Contents
Diff 502884 llvm/lib/Analysis/InstructionSimplify.cpp
llvm/test/Transforms/InstSimplify/minmax-intrin.ll
|