[llvm] r317072 - [DAGCombiner] Fix typos in comments. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 31 20:30:52 PDT 2017
Author: ctopper
Date: Tue Oct 31 20:30:52 2017
New Revision: 317072
URL: http://llvm.org/viewvc/llvm-project?rev=317072&view=rev
Log:
[DAGCombiner] Fix typos in comments. NFC
Modified:
llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
Modified: llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp?rev=317072&r1=317071&r2=317072&view=diff
==============================================================================
--- llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp (original)
+++ llvm/trunk/lib/CodeGen/SelectionDAG/DAGCombiner.cpp Tue Oct 31 20:30:52 2017
@@ -1203,10 +1203,10 @@ SDValue DAGCombiner::PromoteIntBinOp(SDV
Replace0 &= !N0->hasOneUse();
Replace1 &= (N0 != N1) && !N1->hasOneUse();
- // Combine Op here so it is presreved past replacements.
+ // Combine Op here so it is preserved past replacements.
CombineTo(Op.getNode(), RV);
- // If operands have a use ordering, make sur we deal with
+ // If operands have a use ordering, make sure we deal with
// predecessor first.
if (Replace0 && Replace1 && N0.getNode()->isPredecessorOf(N1.getNode())) {
std::swap(N0, N1);
More information about the llvm-commits
mailing list