diff options
author | Nitin John Raj <nitin.raj@sifive.com> | 2022-12-14 14:03:43 -0800 |
---|---|---|
committer | Craig Topper <craig.topper@sifive.com> | 2022-12-14 15:15:30 -0800 |
commit | d741a31a39041413a705a50ff94b4d0bc7aaf598 (patch) | |
tree | f43e006a1703b2ec85d34020d5a66d7e1d2b0220 /llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp | |
parent | 089e120060a4f314df55a7dfecf55b7056773888 (diff) | |
download | llvm-d741a31a39041413a705a50ff94b4d0bc7aaf598.zip llvm-d741a31a39041413a705a50ff94b4d0bc7aaf598.tar.gz llvm-d741a31a39041413a705a50ff94b4d0bc7aaf598.tar.bz2 |
[RISCV][CodeGen][SelectionDAG] Recursively check hasAllNBitUsers for logical machine opcodes
We don’t have W versions of AND/OR/XOR/ANDN/ORN/XNOR so we should recursively check their users. We should limit the recursion to SelectionDAG::MaxRecursionDepth levels.
We need to add a Depth argument, all existing callers should pass 0 to the Depth. The new recursive calls should increment it by 1. At the top of the function we should give up and return false if Depth >= SelectionDAG::MaxRecursionDepth.
Reviewed By: craig.topper
Differential Revision: https://reviews.llvm.org/D139462
Diffstat (limited to 'llvm/lib/Transforms/Utils/LoopUnrollRuntime.cpp')
0 files changed, 0 insertions, 0 deletions