diff options
author | Tom Stellard <thomas.stellard@amd.com> | 2015-01-13 22:59:41 +0000 |
---|---|---|
committer | Tom Stellard <thomas.stellard@amd.com> | 2015-01-13 22:59:41 +0000 |
commit | fb77f00be8dd87082b4e0f8baf7a11dcbede5c33 (patch) | |
tree | 0e64b1b1d40057a6b8e56d29764ce58943b449cf /llvm/lib/Target/R600/SILowerControlFlow.cpp | |
parent | 703378f15646e01193f2aaa0bbf876d27de4b78d (diff) | |
download | bcm5719-llvm-fb77f00be8dd87082b4e0f8baf7a11dcbede5c33.tar.gz bcm5719-llvm-fb77f00be8dd87082b4e0f8baf7a11dcbede5c33.zip |
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.
llvm-svn: 225844
Diffstat (limited to 'llvm/lib/Target/R600/SILowerControlFlow.cpp')
-rw-r--r-- | llvm/lib/Target/R600/SILowerControlFlow.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/lib/Target/R600/SILowerControlFlow.cpp b/llvm/lib/Target/R600/SILowerControlFlow.cpp index 90174d7b30a..068b22f3770 100644 --- a/llvm/lib/Target/R600/SILowerControlFlow.cpp +++ b/llvm/lib/Target/R600/SILowerControlFlow.cpp @@ -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); } |