From: Simon Pilgrim Date: Wed, 15 Mar 2017 14:38:19 +0000 (+0000) Subject: Fix Wint-in-bool-context warning (PR32248) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=a6a5484b63d5048b7c7748ff7f75b33542bceb9c;p=llvm Fix Wint-in-bool-context warning (PR32248) git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@297840 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/Target/AMDGPU/GCNHazardRecognizer.cpp b/lib/Target/AMDGPU/GCNHazardRecognizer.cpp index fd61530b718..746fdb896aa 100644 --- a/lib/Target/AMDGPU/GCNHazardRecognizer.cpp +++ b/lib/Target/AMDGPU/GCNHazardRecognizer.cpp @@ -72,8 +72,8 @@ static bool isRFE(unsigned Opcode) { } static bool isSMovRel(unsigned Opcode) { - return Opcode == AMDGPU::S_MOVRELS_B32 || AMDGPU::S_MOVRELS_B64 || - Opcode == AMDGPU::S_MOVRELD_B32 || AMDGPU::S_MOVRELD_B64; + return Opcode == AMDGPU::S_MOVRELS_B32 || Opcode == AMDGPU::S_MOVRELS_B64 || + Opcode == AMDGPU::S_MOVRELD_B32 || Opcode == AMDGPU::S_MOVRELD_B64; } static bool isVInterp(unsigned Opcode) {