Skip to content

Commit 221c685

Browse files
committed
mend
1 parent 72228f5 commit 221c685

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

clang/lib/CodeGen/CGHLSLRuntime.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,11 +463,11 @@ void CGHLSLRuntime::emitEntryFunction(const FunctionDecl *FD,
463463
B.CreateRetVoid();
464464

465465
// Add and identify root signature to function, if applicable
466-
for (const Attr *Attr : FD->getAttrs()) {
466+
/*for (const Attr *Attr : FD->getAttrs()) {
467467
if (const auto *RSAttr = dyn_cast<RootSignatureAttr>(Attr))
468468
addRootSignature(RSAttr->getSignatureDecl()->getRootElements(), EntryFn,
469469
M);
470-
}
470+
}*/
471471
}
472472

473473
void CGHLSLRuntime::setHLSLFunctionAttributes(const FunctionDecl *FD,

llvm/test/CodeGen/DirectX/legalize-i8.ll

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -163,16 +163,18 @@ define i32 @i8_gep_store() {
163163

164164
@g = local_unnamed_addr addrspace(3) global [2 x float] zeroinitializer, align 4
165165
define float @i8_gep_global_index() {
166-
; CHECK-LABEL: define i32 @i8_gep_global_index(
167-
; CHECK-NEXT: %2 = load float, ptr addrspace(3) getelementptr inbounds nuw (float, ptr addrspace(3) @g, i32 1), align 4
166+
; CHECK-LABEL: define float @i8_gep_global_index(
167+
; CHECK-NEXT: [[LOAD:%.*]] = load float, ptr addrspace(3) getelementptr inbounds nuw (float, ptr addrspace(3) @g, i32 1), align 4
168+
; CHECK-NEXT: ret float [[LOAD]]
168169
%1 = getelementptr inbounds nuw i8, ptr addrspace(3) @g, i32 4
169170
%2 = load float, ptr addrspace(3) %1, align 4
170171
ret float %2
171172
}
172173

173174
define float @i8_gep_global_constexpr() {
174-
; CHECK-LABEL: define i32 @i8_gep_global_constexpr(
175-
; CHECK-NEXT: %2 = load float, ptr addrspace(3) getelementptr inbounds nuw (float, ptr addrspace(3) @g, i32 1), align 4
175+
; CHECK-LABEL: define float @i8_gep_global_constexpr(
176+
; CHECK-NEXT: [[LOAD:%.*]] = load float, ptr addrspace(3) getelementptr inbounds nuw (float, ptr addrspace(3) @g, i32 1), align 4
177+
; CHECK-NEXT: ret float [[LOAD]]
176178
%1 = load float, ptr addrspace(3) getelementptr inbounds nuw (i8, ptr addrspace(3) @g, i32 4), align 4
177179
ret float %1
178180
}

0 commit comments

Comments
 (0)