Skip to content

Commit

Permalink
[AMDGPU] pin lit test divergent-unswitch.ll to the old pass manager
Browse files Browse the repository at this point in the history
The loop-unswitch transform should not be performed on a loop whose
condition is divergent. For this to happen correctly, divergence
analysis must be available. The existing divergence analysis has not
been ported to the new pass manager yet. As a result, loop unswitching
on the new pass manager is currently unsafe on targets that care about
divergence.

This test is temporarily disabled to unblock work on the new pass
manager. The issue is now tracked in bug 48819.

Reviewed By: foad

Differential Revision: https://reviews.llvm.org/D95051
  • Loading branch information
ssahasra committed Jan 20, 2021
1 parent c09be0d commit c540ce9
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
; RUN: opt -mtriple=amdgcn-- -O3 -S %s | FileCheck %s
; RUN: opt -mtriple=amdgcn-- -O3 -S -enable-new-pm=0 %s | FileCheck %s

; This fails with the new pass manager:
; https://bugs.llvm.org/show_bug.cgi?id=48819

; Check that loop unswitch happened and condition hoisted out of the loop.
; Condition is uniform so all targets should perform unswitching.
Expand Down

0 comments on commit c540ce9

Please sign in to comment.