Skip to content

Commit 262c303

Browse files
committed
Revert "[AMDGPU] Disable bool range metadata to workaround backend issue"
This reverts commit 107ee26 to facilitate investigating and fixing the root cause. Differential Revision: https://reviews.llvm.org/D135269
1 parent 5cfd815 commit 262c303

File tree

2 files changed

+1
-27
lines changed

2 files changed

+1
-27
lines changed

clang/lib/CodeGen/CGExpr.cpp

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1750,10 +1750,7 @@ llvm::Value *CodeGenFunction::EmitLoadOfScalar(Address Addr, bool Volatile,
17501750
if (EmitScalarRangeCheck(Load, Ty, Loc)) {
17511751
// In order to prevent the optimizer from throwing away the check, don't
17521752
// attach range metadata to the load.
1753-
// TODO: Enable range metadata for AMDGCN after issue
1754-
// https://github.com/llvm/llvm-project/issues/58176 is fixed.
1755-
} else if (CGM.getCodeGenOpts().OptimizationLevel > 0 &&
1756-
!CGM.getTriple().isAMDGCN())
1753+
} else if (CGM.getCodeGenOpts().OptimizationLevel > 0)
17571754
if (llvm::MDNode *RangeInfo = getRangeForLoadFromType(Ty))
17581755
Load->setMetadata(llvm::LLVMContext::MD_range, RangeInfo);
17591756

clang/test/CodeGenCUDA/bool-range.cu

Lines changed: 0 additions & 23 deletions
This file was deleted.

0 commit comments

Comments
 (0)