[PATCH] D37392: [AMDGPU] Prevent infinite recursion in DAG.computeKnownBits()
Stanislav Mekhanoshin via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 1 13:44:45 PDT 2017
This revision was automatically updated to reflect the committed changes.
Closed by commit rL312364: [AMDGPU] Prevent infinite recursion in DAG.computeKnownBits() (authored by rampitec).
Changed prior to commit:
https://reviews.llvm.org/D37392?vs=113578&id=113590#toc
Repository:
rL LLVM
https://reviews.llvm.org/D37392
Files:
llvm/trunk/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
Index: llvm/trunk/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
===================================================================
--- llvm/trunk/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
+++ llvm/trunk/lib/Target/AMDGPU/AMDGPUISelLowering.cpp
@@ -3886,8 +3886,8 @@
case AMDGPUISD::MUL_U24:
case AMDGPUISD::MUL_I24: {
KnownBits LHSKnown, RHSKnown;
- DAG.computeKnownBits(Op.getOperand(0), LHSKnown);
- DAG.computeKnownBits(Op.getOperand(1), RHSKnown);
+ DAG.computeKnownBits(Op.getOperand(0), LHSKnown, Depth + 1);
+ DAG.computeKnownBits(Op.getOperand(1), RHSKnown, Depth + 1);
unsigned TrailZ = LHSKnown.countMinTrailingZeros() +
RHSKnown.countMinTrailingZeros();
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37392.113590.patch
Type: text/x-patch
Size: 713 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170901/2c458ace/attachment.bin>
More information about the llvm-commits
mailing list