[llvm] r290046 - [InstCombine] Simplify code slightly. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Sat Dec 17 10:10:06 PST 2016
Author: ctopper
Date: Sat Dec 17 12:10:04 2016
New Revision: 290046
URL: http://llvm.org/viewvc/llvm-project?rev=290046&view=rev
Log:
[InstCombine] Simplify code slightly. 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=290046&r1=290045&r2=290046&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp Sat Dec 17 12:10:04 2016
@@ -1284,7 +1284,7 @@ Value *InstCombiner::SimplifyDemandedVec
if (TmpV) { II->setArgOperand(0, TmpV); MadeChange = true; }
// If lowest element of a scalar op isn't used then use Arg0.
- if (DemandedElts.getLoBits(1) != 1)
+ if (!DemandedElts[0])
return II->getArgOperand(0);
// TODO: If only low elt lower SQRT to FSQRT (with rounding/exceptions
// checks).
More information about the llvm-commits
mailing list