summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2018-12-21 15:25:37 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2018-12-21 15:25:37 +0000
commitca8bca2ad36e60a3f1803037097bca330a331953 (patch)
tree3abf856f2e1bb8801a39b6118b4e30a9b12a6384
parentc5885cffc52068f77ff1c75507513556ac0b8d2a (diff)
downloadbcm5719-llvm-ca8bca2ad36e60a3f1803037097bca330a331953.tar.gz
bcm5719-llvm-ca8bca2ad36e60a3f1803037097bca330a331953.zip
[WebAssembly] 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: 349911
-rw-r--r--llvm/lib/Target/WebAssembly/WebAssemblyInstrMemory.td6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/Target/WebAssembly/WebAssemblyInstrMemory.td b/llvm/lib/Target/WebAssembly/WebAssemblyInstrMemory.td
index ccc331d1bf0..0f8b3392c0f 100644
--- a/llvm/lib/Target/WebAssembly/WebAssemblyInstrMemory.td
+++ b/llvm/lib/Target/WebAssembly/WebAssemblyInstrMemory.td
@@ -33,10 +33,8 @@ def or_is_add : PatFrag<(ops node:$lhs, node:$rhs), (or node:$lhs, node:$rhs),[{
if (ConstantSDNode *CN = dyn_cast<ConstantSDNode>(N->getOperand(1)))
return CurDAG->MaskedValueIsZero(N->getOperand(0), CN->getAPIntValue());
- KnownBits Known0;
- CurDAG->computeKnownBits(N->getOperand(0), Known0, 0);
- KnownBits Known1;
- CurDAG->computeKnownBits(N->getOperand(1), Known1, 0);
+ KnownBits Known0 = CurDAG->computeKnownBits(N->getOperand(0), 0);
+ KnownBits Known1 = CurDAG->computeKnownBits(N->getOperand(1), 0);
return (~Known0.Zero & ~Known1.Zero) == 0;
}]>;
OpenPOWER on IntegriCloud