[llvm] r301326 - [InstCombine] Remove superfluous curly braces around a single line if body. NFC

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 25 09:48:19 PDT 2017


Author: ctopper
Date: Tue Apr 25 11:48:19 2017
New Revision: 301326

URL: http://llvm.org/viewvc/llvm-project?rev=301326&view=rev
Log:
[InstCombine] Remove superfluous curly braces around a single line if body. NFC

Modified:
    llvm/trunk/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp

Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp?rev=301326&r1=301325&r2=301326&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp Tue Apr 25 11:48:19 2017
@@ -138,10 +138,9 @@ Value *InstCombiner::SimplifyDemandedUse
   // If there are multiple uses of this value and we aren't at the root, then
   // we can't do any simplifications of the operands, because DemandedMask
   // only reflects the bits demanded by *one* of the users.
-  if (Depth != 0 && !I->hasOneUse()) {
+  if (Depth != 0 && !I->hasOneUse())
     return SimplifyMultipleUseDemandedBits(I, DemandedMask, KnownZero, KnownOne,
                                            Depth, CxtI);
-  }
 
   APInt LHSKnownZero(BitWidth, 0), LHSKnownOne(BitWidth, 0);
   APInt RHSKnownZero(BitWidth, 0), RHSKnownOne(BitWidth, 0);




More information about the llvm-commits mailing list