summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.h
diff options
context:
space:
mode:
authorAmara Emerson <amara.emerson@arm.com>2017-05-01 15:17:51 +0000
committerAmara Emerson <amara.emerson@arm.com>2017-05-01 15:17:51 +0000
commitd28f0cd44892a01781da466e3ad01014c1a758cf (patch)
tree61d9ad789345baefe35a72edabd29a8eb93cdc93 /llvm/lib/Target/AMDGPU/AMDGPUISelLowering.h
parentd2f13b62d97bd48af999ac47058759f2a92123ce (diff)
downloadbcm5719-llvm-d28f0cd44892a01781da466e3ad01014c1a758cf.tar.gz
bcm5719-llvm-d28f0cd44892a01781da466e3ad01014c1a758cf.zip
Generalize the specialized flag-carrying SDNodes by moving flags into SDNode.
This removes BinaryWithFlagsSDNode, and flags are now all passed by value. Differential Revision: https://reviews.llvm.org/D32527 llvm-svn: 301803
Diffstat (limited to 'llvm/lib/Target/AMDGPU/AMDGPUISelLowering.h')
-rw-r--r--llvm/lib/Target/AMDGPU/AMDGPUISelLowering.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.h b/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.h
index 7a78a8253f4..e1a5a207241 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.h
+++ b/llvm/lib/Target/AMDGPU/AMDGPUISelLowering.h
@@ -125,8 +125,9 @@ public:
if (getTargetMachine().Options.NoSignedZerosFPMath)
return true;
- if (const auto *BO = dyn_cast<BinaryWithFlagsSDNode>(Op))
- return BO->Flags.hasNoSignedZeros();
+ const auto Flags = Op.getNode()->getFlags();
+ if (Flags.isDefined())
+ return Flags.hasNoSignedZeros();
return false;
}
OpenPOWER on IntegriCloud