diff options
author | Vitaly Buka <vitalybuka@google.com> | 2024-03-31 22:19:33 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-31 22:19:33 -0700 |
commit | 20f56e1f8e51d672425ec0c8f2ec243b131e8296 (patch) | |
tree | d2f3a045135530858bc8fe50b19af92144907b2c /llvm/lib/CodeGen/CodeGenPrepare.cpp | |
parent | a21e0ba192147af4968742785f375dba0e3ea768 (diff) | |
download | llvm-20f56e1f8e51d672425ec0c8f2ec243b131e8296.zip llvm-20f56e1f8e51d672425ec0c8f2ec243b131e8296.tar.gz llvm-20f56e1f8e51d672425ec0c8f2ec243b131e8296.tar.bz2 |
[CodeGen] Add default lowering for llvm.allow.{runtime,ubsan}.check() (#86049)
RFC:
https://discourse.llvm.org/t/rfc-add-llvm-experimental-hot-intrinsic-or-llvm-hot/77641
Diffstat (limited to 'llvm/lib/CodeGen/CodeGenPrepare.cpp')
-rw-r--r-- | llvm/lib/CodeGen/CodeGenPrepare.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/llvm/lib/CodeGen/CodeGenPrepare.cpp b/llvm/lib/CodeGen/CodeGenPrepare.cpp index 9f99bb7..e657872 100644 --- a/llvm/lib/CodeGen/CodeGenPrepare.cpp +++ b/llvm/lib/CodeGen/CodeGenPrepare.cpp @@ -2462,8 +2462,10 @@ bool CodeGenPrepare::optimizeCallInst(CallInst *CI, ModifyDT &ModifiedDT) { break; case Intrinsic::assume: llvm_unreachable("llvm.assume should have been removed already"); + case Intrinsic::allow_runtime_check: + case Intrinsic::allow_ubsan_check: case Intrinsic::experimental_widenable_condition: { - // Give up on future widening oppurtunties so that we can fold away dead + // Give up on future widening opportunities so that we can fold away dead // paths and merge blocks before going into block-local instruction // selection. if (II->use_empty()) { |