We already have zeroable bits in an APInt. We might as well use that instead of checking for an all zero BUILD_VECTOR.
Details
Details
Diff Detail
Diff Detail
Event Timeline
lib/Target/X86/X86ISelLowering.cpp | ||
---|---|---|
12126–12128 | These look superfluous | |
12136 | Use ternary operators? PermMask |= IsLowZero ? 0x08 : WidenedMask[0]; PermMask |= IsHighZero ? 0x80 : WidenedMask[1]; |
These look superfluous