Correct extractelement constant folding
authorPawel Bylica <chfast@gmail.com>
Fri, 24 Apr 2015 07:42:35 +0000 (07:42 +0000)
committerPawel Bylica <chfast@gmail.com>
Fri, 24 Apr 2015 07:42:35 +0000 (07:42 +0000)
commitbce9c2e263f90cf54ad01803b15a076cf466abb9
tree5c151fdd79ba234235e5fca18c7fb31fc7cb785f
parent86ac44744a0207fea281fc2267fffaa69660fc03
Correct extractelement constant folding

Summary: Constant folding of extractelement with out-of-bound index produces undef also for indexes bigger than 64bit (instead of crash assert failure as before)

Test Plan: Unit tests included.

Reviewers: majnemer

Reviewed By: majnemer

Subscribers: llvm-commits

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

llvm-svn: 235700
llvm/lib/IR/ConstantFold.cpp
llvm/unittests/IR/ConstantsTest.cpp