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)
commit8d00f2ad795306ae061b96a7ba71d87c790f3e2c
tree1240a22f2ab29486780e251cdc8eef0aaa19e2ba
parent9ee9f1a3342bccbb1c135abe1efc9fb6c57d4b4f
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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235700 91177308-0d34-0410-b5e6-96231b3b80d8
lib/IR/ConstantFold.cpp
unittests/IR/ConstantsTest.cpp