[ConstantFold] Disallow folding vector geps into bitcasts

Authored by Ka-Ka on Jun 1 2018, 12:34 PM.


[ConstantFold] Disallow folding vector geps into bitcasts

Getelementptr returns a vector of pointers, instead of a single address,
when one or more of its arguments is a vector. In such case it is not
possible to simplify the expression by inserting a bitcast of operand(0)
into the destination type, as it will create a bitcast between different

Reviewers: majnemer, mkuper, mssimpso, spatel

Reviewed By: spatel

Subscribers: lebedev.ri, llvm-commits

Differential Revision: https://reviews.llvm.org/D46379

llvm-svn: 333783