[llvm] 7adf26e - Revert "Remove incorrect comment around `truncateAVX512SetCCNoBWI`; NFC"
Noah Goldstein via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 15 14:33:50 PST 2023
Author: Noah Goldstein
Date: 2023-02-15T16:33:38-06:00
New Revision: 7adf26e7683d92cf967793d51185c84e73de70cb
URL: https://github.com/llvm/llvm-project/commit/7adf26e7683d92cf967793d51185c84e73de70cb
DIFF: https://github.com/llvm/llvm-project/commit/7adf26e7683d92cf967793d51185c84e73de70cb.diff
LOG: Revert "Remove incorrect comment around `truncateAVX512SetCCNoBWI`; NFC"
This reverts commit f895d55f149b66542940b22c547bb8400cbe2237.
Added:
Modified:
llvm/lib/Target/X86/X86ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index b06d9a312ae9..25054b769482 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -53900,6 +53900,8 @@ static SDValue combineVectorSizedSetCCEquality(SDNode *SetCC, SelectionDAG &DAG,
/// If we have AVX512, but not BWI and this is a vXi16/vXi8 setcc, just
/// pre-promote its result type since vXi1 vectors don't get promoted
/// during type legalization.
+/// NOTE: The element count check is to ignore operand types that need to
+/// go through type promotion to a 128-bit vector.
static SDValue truncateAVX512SetCCNoBWI(EVT VT, EVT OpVT, SDValue LHS,
SDValue RHS, ISD::CondCode CC, SDLoc DL,
SelectionDAG &DAG,
More information about the llvm-commits
mailing list