[llvm] r349914 - [Sparc] Always use the version of computeKnownBits that returns a value. NFCI.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Fri Dec 21 07:32:36 PST 2018
Author: rksimon
Date: Fri Dec 21 07:32:36 2018
New Revision: 349914
URL: http://llvm.org/viewvc/llvm-project?rev=349914&view=rev
Log:
[Sparc] Always use the version of computeKnownBits that returns a value. NFCI.
Continues the work started by @bogner in rL340594 to remove uses of the KnownBits output paramater version.
Modified:
llvm/trunk/lib/Target/Sparc/SparcISelLowering.cpp
Modified: llvm/trunk/lib/Target/Sparc/SparcISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Sparc/SparcISelLowering.cpp?rev=349914&r1=349913&r2=349914&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Sparc/SparcISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/Sparc/SparcISelLowering.cpp Fri Dec 21 07:32:36 2018
@@ -1866,8 +1866,8 @@ void SparcTargetLowering::computeKnownBi
case SPISD::SELECT_ICC:
case SPISD::SELECT_XCC:
case SPISD::SELECT_FCC:
- DAG.computeKnownBits(Op.getOperand(1), Known, Depth+1);
- DAG.computeKnownBits(Op.getOperand(0), Known2, Depth+1);
+ Known = DAG.computeKnownBits(Op.getOperand(1), Depth + 1);
+ Known2 = DAG.computeKnownBits(Op.getOperand(0), Depth + 1);
// Only known if known in both the LHS and RHS.
Known.One &= Known2.One;
More information about the llvm-commits
mailing list