mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-13 04:38:24 +00:00
Improve the loading of load-anyext vectors by allowing the codegen to load
multiple scalars and insert them into a vector. Next, we shuffle the elements into the correct places, as before. Also fix a small dagcombine bug in SimplifyBinOpWithSameOpcodeHands, when the migration of bitcasts happened too late in the SelectionDAG process. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@159991 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -2340,7 +2340,7 @@ SDValue DAGCombiner::SimplifyBinOpWithSameOpcodeHands(SDNode *N) {
|
||||
// We also handle SCALAR_TO_VECTOR because xor/or/and operations are cheaper
|
||||
// on scalars.
|
||||
if ((N0.getOpcode() == ISD::BITCAST || N0.getOpcode() == ISD::SCALAR_TO_VECTOR)
|
||||
&& Level == AfterLegalizeVectorOps) {
|
||||
&& Level == AfterLegalizeTypes) {
|
||||
SDValue In0 = N0.getOperand(0);
|
||||
SDValue In1 = N1.getOperand(0);
|
||||
EVT In0Ty = In0.getValueType();
|
||||
|
Reference in New Issue
Block a user