[InstCombine] simplify masked load intrinsics with all ones or zeros masks
authorSanjay Patel <spatel@rotateright.com>
Mon, 1 Feb 2016 17:00:10 +0000 (17:00 +0000)
committerSanjay Patel <spatel@rotateright.com>
Mon, 1 Feb 2016 17:00:10 +0000 (17:00 +0000)
commitb695c5557cc9453a250cd36f137853b0e39cfd74
treed2a71f569a862d8512265a7a01a543a8f613a099
parent916895073ea48349e044fc00e76256cae9d88b41
[InstCombine] simplify masked load intrinsics with all ones or zeros masks

A masked load with a zero mask means there's no load.
A masked load with an allOnes mask means it's a normal vector load.

Differential Revision: http://reviews.llvm.org/D16691

llvm-svn: 259369
llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
llvm/test/Transforms/InstCombine/masked_intrinsics.ll