Skip to content

Commit 609e345

Browse files
committed
revert verifier llvm/llvm-project@8690690
Signed-off-by: Bangtian Liu <liubangtian@gmail.com>
1 parent 59a255c commit 609e345

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

compiler/plugins/target/ROCM/ROCMTarget.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ class ROCMTargetBackend final : public TargetBackend {
533533
std::string featureStr = llvm::join(features, ",");
534534

535535
targetMachine.reset(target->createTargetMachine(
536-
triple.str(), targetArch, featureStr, opt, llvm::Reloc::Model::PIC_,
536+
triple, targetArch, featureStr, opt, llvm::Reloc::Model::PIC_,
537537
std::nullopt, llvm::CodeGenOptLevel::Aggressive));
538538

539539
if (!targetMachine) {

compiler/src/iree/compiler/GlobalOptimization/test/remove_zero_extent_tensors.mlir

+11
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,14 @@ util.func public @zero_sized_tensor_insert(%arg0 : tensor<?x?xf32>, %arg1 : tens
2525
}
2626
// CHECK: util.func public @zero_sized_tensor_insert(%[[ARG0:.+]]: tensor<?x?xf32>
2727
// CHECK: util.return %[[ARG0]]
28+
29+
// -----
30+
31+
util.func public @zero_sizes_tensor_insert_dest(%arg0 : tensor<0x?xf32>, %arg1 : index) -> tensor<0x?xf32> {
32+
%0 = tensor.empty(%arg1) : tensor<0x?xf32>
33+
%1 = tensor.insert_slice %arg0 into %0[0, 0] [0, %arg1] [1, 1] : tensor<0x?xf32> into tensor<0x?xf32>
34+
util.return %1 : tensor<0x?xf32>
35+
}
36+
// CHECK: util.func public @zero_sizes_tensor_insert_dest(%[[ARG0:.+]]: tensor<0x?xf32>, %[[ARG1:.+]]: index)
37+
// CHECK: %[[EMPTY:.+]] = tensor.empty(%[[ARG1]])
38+
// CHECK: util.return %[[EMPTY]]

0 commit comments

Comments
 (0)