mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-07-28 03:25:23 +00:00
Fix FastISel's assumption that i1 values are always zero-extended
by inserting explicit zero extensions where necessary. Included is a testcase where SelectionDAG produces a virtual register holding an i1 value which FastISel previously mistakenly assumed to be zero-extended. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66941 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -269,6 +269,11 @@ protected:
|
||||
unsigned FastEmitInst_extractsubreg(MVT::SimpleValueType RetVT,
|
||||
unsigned Op0, uint32_t Idx);
|
||||
|
||||
/// FastEmitZExtFromI1 - Emit MachineInstrs to compute the value of Op
|
||||
/// with all but the least significant bit set to zero.
|
||||
unsigned FastEmitZExtFromI1(MVT::SimpleValueType VT,
|
||||
unsigned Op);
|
||||
|
||||
/// FastEmitBranch - Emit an unconditional branch to the given block,
|
||||
/// unless it is the immediate (fall-through) successor, and update
|
||||
/// the CFG.
|
||||
|
Reference in New Issue
Block a user