This also enables some constant folding from KnownBits propagation. This helps on some cases vXi64 case in 32-bit mode where constant vectors appear as vXi32 and a bitcast. This can prevent getNode from constant folding sra/shl/srl.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
LGTM
lib/Target/X86/X86ISelLowering.cpp | ||
---|---|---|
31857–31859 ↗ | (On Diff #172484) | This could use a comment like the generic SRA: // If any of the demanded bits are produced by the sign extension, we also // demand the input sign bit. |