projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1445c11
)
[X86] LowerVectorAllEqual - remove repeated VT.getScalarSizeInBits() call. NFC.
author
Simon Pilgrim
<llvm-dev@redking.me.uk>
Tue, 4 Apr 2023 09:45:43 +0000
(10:45 +0100)
committer
Simon Pilgrim
<llvm-dev@redking.me.uk>
Tue, 4 Apr 2023 09:47:48 +0000
(10:47 +0100)
llvm/lib/Target/X86/X86ISelLowering.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/Target/X86/X86ISelLowering.cpp
b/llvm/lib/Target/X86/X86ISelLowering.cpp
index
c7eac48
..
79a5bbd
100644
(file)
--- a/
llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/
llvm/lib/Target/X86/X86ISelLowering.cpp
@@
-24390,7
+24390,7
@@
static SDValue LowerVectorAllEqual(const SDLoc &DL, SDValue LHS, SDValue RHS,
// scalarization.
bool UseKORTEST = Subtarget.useAVX512Regs();
bool UsePTEST = Subtarget.hasSSE41();
- if (!UsePTEST && !Mask.isAllOnes() &&
VT.getScalarSizeInBits()
> 32)
+ if (!UsePTEST && !Mask.isAllOnes() &&
ScalarSize
> 32)
return SDValue();
// Split down to 128/256/512-bit vector.