================ @@ -5218,7 +5218,11 @@ void SelectionDAGBuilder::visitAtomicLoad(const LoadInst &I) { L = DAG.getPtrExtOrTrunc(L, dl, VT); setValue(&I, L); - DAG.setRoot(OutChain); + ---------------- jofrn wrote:
It is here so that the elements are vectorized later in EltsFromConsecutiveLoads. Without this here, it will need to check the chain differently in EltsFromConsecutiveLoads based on being an Atomic or not in order to vectorize. https://github.com/llvm/llvm-project/pull/120640 _______________________________________________ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits