OSDN Git Service

[DAGCombiner] Fix & simplify constant folding of sext/zext.
authorPawel Bylica <chfast@gmail.com>
Mon, 29 Jun 2015 20:28:47 +0000 (20:28 +0000)
committerPawel Bylica <chfast@gmail.com>
Mon, 29 Jun 2015 20:28:47 +0000 (20:28 +0000)
commit4c81aa260209379a29ab4bce328160cb333daaf9
treeca6dc983c7c1b293320fb949fef7f88362fddbf2
parent17d72156618943d19dbd05a60b221fa581975e14
[DAGCombiner] Fix & simplify constant folding of sext/zext.

Summary: This patch fixes the cases of sext/zext constant folding in DAG combiner where constans do not fit 64 bits. The fix simply removes un$

Test Plan: New regression test included.

Reviewers: RKSimon

Reviewed By: RKSimon

Subscribers: RKSimon, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@240991 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/fold-vector-sext-crash2.ll [new file with mode: 0644]