Teach instcombine to propagate demanded elements through a masked load or masked gather instruction.
This is in the broader context of improving vector pointer instcombine under https://reviews.llvm.org/D57140.
Differential D57372
Demanded elements support for masked.load and masked.gather reames on Jan 28 2019, 10:12 PM. Authored by
Details Teach instcombine to propagate demanded elements through a masked load or masked gather instruction. This is in the broader context of improving vector pointer instcombine under https://reviews.llvm.org/D57140.
Diff Detail
Event Timeline
Comment Actions Address review comment re: naming. I chose DemandedPtrs instead of DemandedPtrVec for consistency w/other variables in the same file.
Comment Actions LGTM
Comment Actions Be aware that this patch turned out to contain a nasty miscompile. It's now been fixed in https://reviews.llvm.org/rL358299. I recommend anyone who has branched with this change to consider cherry-picking the fix. |