mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-14 11:32:34 +00:00
Add FIXME for operand promotion.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@99859 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
d77f8181b4
commit
4bd24c257e
@ -794,6 +794,9 @@ X86TargetLowering::X86TargetLowering(X86TargetMachine &TM)
|
||||
}
|
||||
|
||||
// Promote v16i8, v8i16, v4i32 load, select, and, or, xor to v2i64.
|
||||
// FIXME: This produces lots of inefficiencies in isel since
|
||||
// we then need notice that most of our operands have been implicitly
|
||||
// converted to v2i64.
|
||||
for (unsigned i = (unsigned)MVT::v16i8; i != (unsigned)MVT::v2i64; i++) {
|
||||
MVT::SimpleValueType SVT = (MVT::SimpleValueType)i;
|
||||
EVT VT = SVT;
|
||||
@ -802,6 +805,7 @@ X86TargetLowering::X86TargetLowering(X86TargetMachine &TM)
|
||||
if (!VT.is128BitVector()) {
|
||||
continue;
|
||||
}
|
||||
|
||||
setOperationAction(ISD::AND, SVT, Promote);
|
||||
AddPromotedToType (ISD::AND, SVT, MVT::v2i64);
|
||||
setOperationAction(ISD::OR, SVT, Promote);
|
||||
|
Loading…
Reference in New Issue
Block a user