Skip to content

Commit 5af72f8

Browse files
chsiggcopybara-github
authored andcommitted
Remove unnecessary canonicalizer pass in lmhlo > tfrt_gpu lowering.
This prevents `gpu.wait` ops from being erased by the SimplifyGpuWaitOp canonicalization pattern introduced in https://reviews.llvm.org/D121878. PiperOrigin-RevId: 444367338
1 parent 16a1384 commit 5af72f8

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

backends/gpu/lib/passes/gpu_to_tfrt_passes.cc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1729,7 +1729,6 @@ TypeConverter CreateMemrefToTfrtGpuConverter() {
17291729
void populateGpuToTfrtGpuPasses(OpPassManager &pm) {
17301730
pm.addPass(std::make_unique<AddChainAndStreamToFuncPass>());
17311731
pm.addPass(std::make_unique<ConvertAsyncToChainAndEventPass>());
1732-
pm.addPass(createCanonicalizerPass()); // Remove unused `cast(get_global)`.
17331732
pm.addPass(std::make_unique<ConvertGpuToTfrtGpuPass>());
17341733
pm.addPass(std::make_unique<ReconcileCastsPass>());
17351734
pm.addPass(std::make_unique<ConvertAsyncToTfrtPass>());

0 commit comments

Comments
 (0)