summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/Sparc
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2018-12-21 15:32:36 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2018-12-21 15:32:36 +0000
commit7787a02b232a007ad3c8eb64489a98b26005441b (patch)
treeca9cf7010588629616e17d4c37f0f23d98859850 /llvm/lib/Target/Sparc
parent3c157d3fa350c4e9b01a0f5909fec40541d92e6d (diff)
downloadbcm5719-llvm-7787a02b232a007ad3c8eb64489a98b26005441b.tar.gz
bcm5719-llvm-7787a02b232a007ad3c8eb64489a98b26005441b.zip
[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. llvm-svn: 349914
Diffstat (limited to 'llvm/lib/Target/Sparc')
-rw-r--r--llvm/lib/Target/Sparc/SparcISelLowering.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/Target/Sparc/SparcISelLowering.cpp b/llvm/lib/Target/Sparc/SparcISelLowering.cpp
index 7d908bb6b32..ae2257618a5 100644
--- a/llvm/lib/Target/Sparc/SparcISelLowering.cpp
+++ b/llvm/lib/Target/Sparc/SparcISelLowering.cpp
@@ -1866,8 +1866,8 @@ void SparcTargetLowering::computeKnownBitsForTargetNode
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;
OpenPOWER on IntegriCloud