[llvm] [SelectionDAGBuilder] Fix non-determanism in `shouldKeepJumpConditionsTogether` (PR #83687)
NAKAMURA Takumi via llvm-commits
llvm-commits at lists.llvm.org
Sat Mar 2 16:07:38 PST 2024
================
@@ -2527,16 +2530,20 @@ bool SelectionDAGBuilder::shouldKeepJumpConditionsTogether(
// Collect "all" instructions that lhs condition is dependent on.
SmallPtrSet<const Instruction *, 8> LhsDeps, RhsDeps;
+ SmallVector<const Instruction *> RhsDepsItOrder;
----------------
chapuni wrote:
We could use `SmallMapVector` with dummy vals for easy solution.
https://github.com/llvm/llvm-project/pull/83687
More information about the llvm-commits
mailing list