ConstantInt has some getters which return ConstantInt's or ConstantVector's of
authorNick Lewycky <nicholas@mxc.ca>
Sun, 6 Mar 2011 03:36:19 +0000 (03:36 +0000)
committerNick Lewycky <nicholas@mxc.ca>
Sun, 6 Mar 2011 03:36:19 +0000 (03:36 +0000)
commitd01f50f42ce60207ed6d27fb1778e456d83be06c
tree6d7798f9ac99c0ec1b33f056715d3980fc92355f
parent511cab20cb6ef0575c961cbbcb86bb539b538a1c
ConstantInt has some getters which return ConstantInt's or ConstantVector's of
the value splatted into every element. Extend this to getTrue and getFalse which
by providing new overloads that take Types that are either i1 or <N x i1>. Use
it in InstCombine to add vector support to some code, fixing PR8469!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@127116 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Constants.h
lib/Transforms/InstCombine/InstCombineCompares.cpp
lib/VMCore/Constants.cpp
test/Transforms/InstCombine/icmp.ll