[PATCH] D30796: Only unswitch loops with uniform conditions

Stanislav Mekhanoshin via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Mar 9 15:44:37 PST 2017


rampitec added inline comments.


================
Comment at: test/Transforms/LoopUnswitch/AMDGPU/divergent-unswitch.ll:2
+; RUN: opt -mtriple=amdgcn-- -O3 -S %s | FileCheck --check-prefix=ALL --check-prefix=AMDGPU %s
+; RUN: opt -O3 -S %s | FileCheck --check-prefix=ALL --check-prefix=NONDIV %s
+
----------------
efriedma wrote:
> This will break if the user compiles LLVM with only the AMDGPU target enabled.
Indeed. I guess I can remove non AMDGPU test as the first test already checks that unswitch happens.


Repository:
  rL LLVM

https://reviews.llvm.org/D30796





More information about the llvm-commits mailing list