[ScalarizeMaskedMemIntrin] Ensure the mask is a vector of ConstantInts before generat...
authorCraig Topper <craig.topper@intel.com>
Thu, 27 Sep 2018 22:31:42 +0000 (22:31 +0000)
committerCraig Topper <craig.topper@intel.com>
Thu, 27 Sep 2018 22:31:42 +0000 (22:31 +0000)
commit8b4f0e1b8c454e3427ce1ffe5f86df15ff2a6d30
treef620cededa3cc2a1619e48296af0c25986658488
parent10ec021621f54d0d2c68de2d7ad230b43723d743
[ScalarizeMaskedMemIntrin] Ensure the mask is a vector of ConstantInts before generating the expansion without control flow.

Its possible the mask itself or one of the elements is a ConstantExpr and we shouldn't optimize in that case.

llvm-svn: 343278
llvm/lib/CodeGen/ScalarizeMaskedMemIntrin.cpp