[llvm] [SelectionDAGBuilder] Fix non-determanism in `shouldKeepJumpConditionsTogether` (PR #83687)

via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 2 20:17:17 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;
----------------
goldsteinn wrote:

Yeah that is better idea, kind of tricked myself into removing some useful logic. Updating.

https://github.com/llvm/llvm-project/pull/83687


More information about the llvm-commits mailing list