We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d960d58 commit f2826a8Copy full SHA for f2826a8
src/enzyme_ad/jax/Passes/EnzymeHLOOpt.cpp
@@ -3683,10 +3683,7 @@ struct SliceElementwise final
3683
return failure();
3684
if (!stablehlo::hasTraitElementwise(elem))
3685
3686
- if (llvm::hasSingleElement(elem->getUsers()) ||
3687
- (llvm::hasSingleElement(op.getResult().getUsers()) &&
3688
- isa<stablehlo::ConcatenateOp>(
3689
- op.getResult().use_begin()->getOwner()))) {
+ if (llvm::hasSingleElement(elem->getUsers())) {
3690
SmallVector<Value> ops;
3691
for (auto v : elem->getOperands()) {
3692
ops.push_back(stablehlo::SliceOp::create(
0 commit comments