mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-01 00:17:01 +00:00
R600/SI: Add pattern for bitcasting fp immediates to integers
The backend now assumes that all immediates are integers. This allows us to simplify immediate handling code, becasue we no longer need to handle fp and integer immediates differently. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@225844 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -308,10 +308,9 @@ void SILowerControlFlowPass::Kill(MachineInstr &MI) {
|
||||
#endif
|
||||
|
||||
// Clear this thread from the exec mask if the operand is negative
|
||||
if ((Op.isImm() || Op.isFPImm())) {
|
||||
if ((Op.isImm())) {
|
||||
// Constant operand: Set exec mask to 0 or do nothing
|
||||
if (Op.isImm() ? (Op.getImm() & 0x80000000) :
|
||||
Op.getFPImm()->isNegative()) {
|
||||
if (Op.getImm() & 0x80000000) {
|
||||
BuildMI(MBB, &MI, DL, TII->get(AMDGPU::S_MOV_B64), AMDGPU::EXEC)
|
||||
.addImm(0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user