[llvm] r367357 - [X86] Fix mistake in comment. NFC
Craig Topper via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 30 14:00:25 PDT 2019
Author: ctopper
Date: Tue Jul 30 14:00:24 2019
New Revision: 367357
URL: http://llvm.org/viewvc/llvm-project?rev=367357&view=rev
Log:
[X86] Fix mistake in comment. NFC
The code is matching sext not zext.
Modified:
llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
Modified: llvm/trunk/lib/Target/X86/X86ISelLowering.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86ISelLowering.cpp?rev=367357&r1=367356&r2=367357&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86ISelLowering.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86ISelLowering.cpp Tue Jul 30 14:00:24 2019
@@ -43422,8 +43422,8 @@ static SDValue matchPMADDWD(SelectionDAG
}
// Attempt to turn this pattern into PMADDWD.
-// (mul (add (zext (build_vector)), (zext (build_vector))),
-// (add (zext (build_vector)), (zext (build_vector)))
+// (mul (add (sext (build_vector)), (sext (build_vector))),
+// (add (sext (build_vector)), (sext (build_vector)))
static SDValue matchPMADDWD_2(SelectionDAG &DAG, SDValue N0, SDValue N1,
const SDLoc &DL, EVT VT,
const X86Subtarget &Subtarget) {
More information about the llvm-commits
mailing list