mirror of
https://github.com/RPCSX/llvm.git
synced 2024-11-26 05:00:26 +00:00
Add suggested parentheses.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@91853 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d2191e549b
commit
eddfaaf07e
@ -9598,10 +9598,10 @@ Instruction *InstCombiner::FoldSPFofSPF(Instruction *Inner,
|
||||
|
||||
// MAX(MIN(a, b), a) -> a
|
||||
// MIN(MAX(a, b), a) -> a
|
||||
if (SPF1 == SPF_SMIN && SPF2 == SPF_SMAX ||
|
||||
SPF1 == SPF_SMAX && SPF2 == SPF_SMIN ||
|
||||
SPF1 == SPF_UMIN && SPF2 == SPF_UMAX ||
|
||||
SPF1 == SPF_UMAX && SPF2 == SPF_UMIN)
|
||||
if ((SPF1 == SPF_SMIN && SPF2 == SPF_SMAX) ||
|
||||
(SPF1 == SPF_SMAX && SPF2 == SPF_SMIN) ||
|
||||
(SPF1 == SPF_UMIN && SPF2 == SPF_UMAX) ||
|
||||
(SPF1 == SPF_UMAX && SPF2 == SPF_UMIN))
|
||||
return ReplaceInstUsesWith(Outer, C);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user