mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-01-23 02:32:11 +00:00
Fix thinko: we must turn select(anyext, sext) into sext(select)
not anyext(select). Spotted by Frits van Bommel. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@119739 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d5448bb6e8
commit
b9064bb964
@ -6712,7 +6712,8 @@ bool DAGCombiner::SimplifySelectOps(SDNode *TheSelect, SDValue LHS,
|
||||
LLD->isVolatile(), LLD->isNonTemporal(),
|
||||
LLD->getAlignment());
|
||||
} else {
|
||||
Load = DAG.getExtLoad(LLD->getExtensionType(),
|
||||
Load = DAG.getExtLoad(LLD->getExtensionType() == ISD::EXTLOAD ?
|
||||
RLD->getExtensionType() : LLD->getExtensionType(),
|
||||
TheSelect->getValueType(0),
|
||||
TheSelect->getDebugLoc(),
|
||||
// FIXME: Discards pointer info.
|
||||
|
Loading…
x
Reference in New Issue
Block a user