Fix #9190
authorNadav Rotem <nadav.rotem@intel.com>
Fri, 11 Feb 2011 19:20:37 +0000 (19:20 +0000)
committerNadav Rotem <nadav.rotem@intel.com>
Fri, 11 Feb 2011 19:20:37 +0000 (19:20 +0000)
commit5a4552ca4256461f402f9d7d2511e77c79316907
treedac027d9ed8875e02f9b03672d992ad3fc6f1d5f
parent015b4b5a059cdb8aa2c65ebdd89aa84155bbba75
Fix #9190

The bug happens when the DAGCombiner attempts to optimize one of the patterns
of the SUB opcode. It tries to create a zero of type v2i64. This type is legal
on 32bit machines, but the initializer of this vector (i64) is target dependent.
Currently, the initializer attempts to create an i64 zero constant, which fails.
Added a flag to tell the DAGCombiner to create a legal zero, if we require that
the pass would generate legal types.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@125391 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp