Skip to content

Commit 84ad1d4

Browse files
committed
prune whitelist
1 parent 416084c commit 84ad1d4

File tree

1 file changed

+3
-14
lines changed

1 file changed

+3
-14
lines changed

llvm/lib/Target/DirectX/DXILPrepare.cpp

Lines changed: 3 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -163,20 +163,9 @@ class DXILPrepareModule : public ModulePass {
163163

164164
static llvm::SmallVector<unsigned> getCompatibleInstructionMDs(Module &M) {
165165
llvm::SmallVector<unsigned, 16> ret = {
166-
M.getMDKindID("dx.nonuniform"),
167-
M.getMDKindID("dx.controlflow.hints"),
168-
M.getMDKindID("dx.precise"),
169-
LLVMContext::MD_prof,
170-
LLVMContext::MD_fpmath,
171-
LLVMContext::MD_range,
172-
LLVMContext::MD_tbaa_struct,
173-
LLVMContext::MD_invariant_load,
174-
LLVMContext::MD_alias_scope,
175-
LLVMContext::MD_noalias,
176-
LLVMContext::MD_nontemporal,
177-
LLVMContext::MD_nonnull,
178-
LLVMContext::MD_dereferenceable,
179-
LLVMContext::MD_dereferenceable_or_null};
166+
M.getMDKindID("dx.nonuniform"), M.getMDKindID("dx.controlflow.hints"),
167+
M.getMDKindID("dx.precise"), LLVMContext::MD_range,
168+
LLVMContext::MD_alias_scope, LLVMContext::MD_noalias};
180169

181170
return ret;
182171
}

0 commit comments

Comments
 (0)