diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-12-21 23:27:57 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-12-21 23:27:57 +0000 |
| commit | c661a2d4d8bdf48c0126ac2d0b1a4b1267b7eb28 (patch) | |
| tree | 5904a8fdd86035c749a6bacb079dfb183c0be16c | |
| parent | 8364e6b56856e28efccf03649f435d5ae41ffed3 (diff) | |
| download | bcm5719-llvm-c661a2d4d8bdf48c0126ac2d0b1a4b1267b7eb28.tar.gz bcm5719-llvm-c661a2d4d8bdf48c0126ac2d0b1a4b1267b7eb28.zip | |
Add suggested parentheses.
llvm-svn: 91853
| -rw-r--r-- | llvm/lib/Transforms/Scalar/InstructionCombining.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp index ca60219b909..72dc26ef858 100644 --- a/llvm/lib/Transforms/Scalar/InstructionCombining.cpp +++ b/llvm/lib/Transforms/Scalar/InstructionCombining.cpp @@ -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); } |

