Skip to content

Commit 71bf645

Browse files
author
z1.cciauto
committed
merge main into amd-staging
2 parents 4273313 + d9ccfd7 commit 71bf645

File tree

11 files changed

+9
-12
lines changed

11 files changed

+9
-12
lines changed

llvm/lib/IR/Value.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ void Value::dropDroppableUse(Use &U) {
228228
return;
229229
}
230230

231-
llvm_unreachable("unkown droppable use");
231+
llvm_unreachable("unknown droppable use");
232232
}
233233

234234
bool Value::isUsedInBasicBlock(const BasicBlock *BB) const {

llvm/test/Transforms/NaryReassociate/nary-add.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
; RUN: opt < %s -passes=nary-reassociate -S | FileCheck %s
2-
; RUN: opt < %s -passes='nary-reassociate' -S | FileCheck %s
32

43
target datalayout = "e-i64:64-v16:16-v32:32-n16:32:64"
54

llvm/test/Transforms/NaryReassociate/nary-mul.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
; RUN: opt < %s -passes=nary-reassociate -S | FileCheck %s
2-
; RUN: opt < %s -passes='nary-reassociate' -S | FileCheck %s
32

43
target datalayout = "e-i64:64-v16:16-v32:32-n16:32:64"
54

llvm/test/Transforms/NaryReassociate/nary-req.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
22
; RUN: opt < %s -passes=nary-reassociate -S | FileCheck %s
3-
; RUN: opt < %s -passes='nary-reassociate' -S | FileCheck %s
43

54
declare i32 @llvm.smax.i32(i32 %a, i32 %b)
65
declare i64 @llvm.umin.i64(i64, i64)

llvm/test/Transforms/NaryReassociate/nary-smax.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
22
; RUN: opt < %s -passes=nary-reassociate -S | FileCheck %s
3-
; RUN: opt < %s -passes='nary-reassociate' -S | FileCheck %s
43

54
declare i32 @llvm.smax.i32(i32 %a, i32 %b)
65

llvm/test/Transforms/NaryReassociate/nary-smin.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
22
; RUN: opt < %s -passes=nary-reassociate -S | FileCheck %s
3-
; RUN: opt < %s -passes='nary-reassociate' -S | FileCheck %s
43

54
declare i32 @llvm.smin.i32(i32 %a, i32 %b)
65

llvm/test/Transforms/NaryReassociate/nary-umax.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
22
; RUN: opt < %s -passes=nary-reassociate -S | FileCheck %s
3-
; RUN: opt < %s -passes='nary-reassociate' -S | FileCheck %s
43

54
declare i32 @llvm.umax.i32(i32 %a, i32 %b)
65

llvm/test/Transforms/NaryReassociate/nary-umin.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
22
; RUN: opt < %s -passes=nary-reassociate -S | FileCheck %s
3-
; RUN: opt < %s -passes='nary-reassociate' -S | FileCheck %s
43

54
declare i32 @llvm.umin.i32(i32 %a, i32 %b)
65

llvm/test/Transforms/NaryReassociate/pr24301.ll

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
; NOTE: Assertions have been autogenerated by utils/update_test_checks.py
22
; RUN: opt < %s -passes=nary-reassociate -S | FileCheck %s
3-
; RUN: opt < %s -passes='nary-reassociate' -S | FileCheck %s
43

54
define i32 @foo(i32 %t4) {
65
; CHECK-LABEL: @foo(

mlir/lib/Dialect/LLVMIR/Transforms/InlinerInterfaceImpl.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,11 +664,16 @@ struct LLVMInlinerInterface : public DialectInlinerInterface {
664664

665665
bool isLegalToInline(Operation *call, Operation *callable,
666666
bool wouldBeCloned) const final {
667-
if (!isa<LLVM::CallOp>(call)) {
667+
auto callOp = dyn_cast<LLVM::CallOp>(call);
668+
if (!callOp) {
668669
LLVM_DEBUG(llvm::dbgs() << "Cannot inline: call is not an '"
669670
<< LLVM::CallOp::getOperationName() << "' op\n");
670671
return false;
671672
}
673+
if (callOp.getNoInline()) {
674+
LLVM_DEBUG(llvm::dbgs() << "Cannot inline: call is marked no_inline\n");
675+
return false;
676+
}
672677
auto funcOp = dyn_cast<LLVM::LLVMFuncOp>(callable);
673678
if (!funcOp) {
674679
LLVM_DEBUG(llvm::dbgs()

0 commit comments

Comments
 (0)