Skip to content

Commit

Permalink
Minor formatting of if else (Xilinx#436)
Browse files Browse the repository at this point in the history
  • Loading branch information
erwei-xilinx authored Feb 20, 2024
1 parent 3dc53e8 commit 166d931
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion mlir/lib/Conversion/AIRRtToIpuPass.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1039,12 +1039,13 @@ struct AIRRtToIpuPass : public impl::AIRRtToIpuBase<AIRRtToIpuPass> {
return;
// if the memref is the result of a cast of an arg, return
if (auto cast = dyn_cast_or_null<UnrealizedConversionCastOp>(
memref.getDefiningOp()))
memref.getDefiningOp())) {
if (std::find(args.begin(), args.end(), cast.getOperand(0)) !=
args.end())
return;
else
memref = cast.getOperand(0);
}
// push back if unique
if (std::find(memrefs.begin(), memrefs.end(), dma.getMemref()) ==
memrefs.end()) {
Expand Down

0 comments on commit 166d931

Please sign in to comment.