summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/R600/SILowerControlFlow.cpp
diff options
context:
space:
mode:
authorTom Stellard <thomas.stellard@amd.com>2015-01-13 22:59:41 +0000
committerTom Stellard <thomas.stellard@amd.com>2015-01-13 22:59:41 +0000
commitfb77f00be8dd87082b4e0f8baf7a11dcbede5c33 (patch)
tree0e64b1b1d40057a6b8e56d29764ce58943b449cf /llvm/lib/Target/R600/SILowerControlFlow.cpp
parent703378f15646e01193f2aaa0bbf876d27de4b78d (diff)
downloadbcm5719-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.cpp5
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);
}
OpenPOWER on IntegriCloud