summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
diff options
context:
space:
mode:
authorDaniel Sanders <daniel_l_sanders@apple.com>2019-09-30 20:55:53 +0000
committerDaniel Sanders <daniel_l_sanders@apple.com>2019-09-30 20:55:53 +0000
commitcbe13a1461efba73d5ab7987cf4182e4ab6960a6 (patch)
tree6c4468e5582af7e394c07b58a7c8390e27cfc023 /llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
parentc8ad8686ac072fb35862f4d5e09cb1ab91a15a8e (diff)
downloadbcm5719-llvm-cbe13a1461efba73d5ab7987cf4182e4ab6960a6.tar.gz
bcm5719-llvm-cbe13a1461efba73d5ab7987cf4182e4ab6960a6.zip
[globalisel][knownbits] Allow targets to call GISelKnownBits::computeKnownBitsImpl()
Summary: It seems we missed that the target hook can't query the known-bits for the inputs to a target instruction. Fix that oversight Reviewers: aditya_nandakumar Subscribers: rovka, hiraditya, volkan, Petar.Avramovic, llvm-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D67380 llvm-svn: 373264
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp')
-rw-r--r--llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp b/llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
index c0391f7771f..8f9b7ddeabf 100644
--- a/llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
+++ b/llvm/lib/CodeGen/GlobalISel/GISelKnownBits.cpp
@@ -119,7 +119,8 @@ void GISelKnownBits::computeKnownBitsImpl(Register R, KnownBits &Known,
switch (Opcode) {
default:
- TL.computeKnownBitsForTargetInstr(R, Known, DemandedElts, MRI, Depth);
+ TL.computeKnownBitsForTargetInstr(*this, R, Known, DemandedElts, MRI,
+ Depth);
break;
case TargetOpcode::COPY: {
MachineOperand Dst = MI.getOperand(0);
OpenPOWER on IntegriCloud