We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
const
GreaterBitwidthComparator
1 parent 8925187 commit 08fa9f8Copy full SHA for 08fa9f8
xls/passes/resource_sharing_pass.cc
@@ -399,10 +399,10 @@ ResourceSharingPass::ComputeFoldableActions(
399
return foldable_actions;
400
}
401
402
-bool GreaterBitwidthComparator(BinaryFoldingAction* a0,
403
- BinaryFoldingAction* a1) {
404
- Node* a0_source = a0->GetFrom();
405
- Node* a1_source = a1->GetFrom();
+bool GreaterBitwidthComparator(const BinaryFoldingAction* a0,
+ const BinaryFoldingAction* a1) {
+ const Node* a0_source = a0->GetFrom();
+ const Node* a1_source = a1->GetFrom();
406
int64_t a0_bitwidth = a0_source->BitCountOrDie();
407
int64_t a1_bitwidth = a1_source->BitCountOrDie();
408
if (a0_bitwidth == a1_bitwidth) {
0 commit comments