diff options
author | Craig Topper <craig.topper@gmail.com> | 2017-04-25 16:48:19 +0000 |
---|---|---|
committer | Craig Topper <craig.topper@gmail.com> | 2017-04-25 16:48:19 +0000 |
commit | 7603dce6b2f45aa359d002b7a6525e003cc5caff (patch) | |
tree | b87b9d764d7aa205b2ac48e070143749d224f834 /llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp | |
parent | 2d9afa77453f288f651750ac5ad7bce9c7b66abe (diff) | |
download | bcm5719-llvm-7603dce6b2f45aa359d002b7a6525e003cc5caff.tar.gz bcm5719-llvm-7603dce6b2f45aa359d002b7a6525e003cc5caff.zip |
[InstCombine] Remove superfluous curly braces around a single line if body. NFC
llvm-svn: 301326
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp b/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp index 2f6e411345f..5222cd498f3 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp @@ -138,10 +138,9 @@ Value *InstCombiner::SimplifyDemandedUseBits(Value *V, APInt DemandedMask, // 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); |