mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-03-04 05:31:51 +00:00
Prevent x86-specific DAGCombine from creating nodes with illegal type (which could not be selected). Fixes a minor isel issue that was breaking the testcase from r136130.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136148 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
bfe3686aee
commit
61cc47e15d
@ -4520,7 +4520,8 @@ static SDValue EltsFromConsecutiveLoads(EVT VT, SmallVectorImpl<SDValue> &Elts,
|
||||
LDBase->getPointerInfo(),
|
||||
LDBase->isVolatile(), LDBase->isNonTemporal(),
|
||||
LDBase->getAlignment());
|
||||
} else if (NumElems == 4 && LastLoadedElt == 1) {
|
||||
} else if (NumElems == 4 && LastLoadedElt == 1 &&
|
||||
DAG.getTargetLoweringInfo().isTypeLegal(MVT::v2i64)) {
|
||||
SDVTList Tys = DAG.getVTList(MVT::v2i64, MVT::Other);
|
||||
SDValue Ops[] = { LDBase->getChain(), LDBase->getBasePtr() };
|
||||
SDValue ResNode = DAG.getMemIntrinsicNode(X86ISD::VZEXT_LOAD, DL, Tys,
|
||||
|
@ -1,7 +1,6 @@
|
||||
; RUN: llc < %s -march=x86 -mattr=-sse2,+sse | grep addps
|
||||
|
||||
; XFAIL: *
|
||||
; PR10497
|
||||
; PR10497 + another isel issue with sse2 disabled
|
||||
; (This is primarily checking that this construct doesn't crash.)
|
||||
define void @a(<2 x float>* %a, <2 x i32>* %b) {
|
||||
%cc = load <2 x float>* %a
|
||||
|
Loading…
x
Reference in New Issue
Block a user