[llvm] [UniformityAnalysis] Skip CycleAnalysis on targets without branch divergence (PR #189948)
Pankaj Dwivedi via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 2 05:10:09 PDT 2026
================
@@ -1289,29 +1289,43 @@ GenericUniformityInfo<ContextT>::getFunction() const {
}
/// Whether \p V is divergent at its definition.
+/// A default-constructed instance (no analysis computed) reports everything
+/// as uniform, which is conservatively correct for non-divergent targets.
template <typename ContextT>
bool GenericUniformityInfo<ContextT>::isDivergent(ConstValueRefT V) const {
+ if (!DA)
+ return false;
----------------
PankajDwivedi-25 wrote:
Thank you, updated in recent patch.
https://github.com/llvm/llvm-project/pull/189948
More information about the llvm-commits
mailing list