[VPlan] Use properlyDominates predicate for ordering FOR users.
authorFlorian Hahn <flo@fhahn.com>
Mon, 13 Feb 2023 21:24:57 +0000 (21:24 +0000)
committerFlorian Hahn <flo@fhahn.com>
Mon, 13 Feb 2023 21:24:58 +0000 (21:24 +0000)
commit807d43239a5fe0bb93d64925393bb99abbd81a92
treed15fcdab5784b78a49c2449ef1e249125389959f
parent161b9d741a3c25f7bd79620598c5a2acf3f0f377
[VPlan] Use properlyDominates predicate for ordering FOR users.

The current implementation may return true for A < B and B < A, which
may cause issues if the sort implementation assures this property of the
comperator. This should fix a crash with MSVC.
llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp