diff options
author | Nikita Popov <npopov@redhat.com> | 2022-07-06 10:29:47 +0200 |
---|---|---|
committer | Nikita Popov <npopov@redhat.com> | 2022-07-06 10:36:47 +0200 |
commit | 8ee913d83b170729300a2381158c77acdb3ac8f8 (patch) | |
tree | 311fd9e5279637d1865e6f894dc83549268717ef /llvm/lib/IR/Constants.cpp | |
parent | 11950efe06822590ff3ee4048df741136c5295bd (diff) | |
download | llvm-8ee913d83b170729300a2381158c77acdb3ac8f8.zip llvm-8ee913d83b170729300a2381158c77acdb3ac8f8.tar.gz llvm-8ee913d83b170729300a2381158c77acdb3ac8f8.tar.bz2 |
[IR] Remove Constant::canTrap() (NFC)
As integer div/rem constant expressions are no longer supported,
constants can no longer trap and are always safe to speculate.
Remove the Constant::canTrap() method and its usages.
Diffstat (limited to 'llvm/lib/IR/Constants.cpp')
-rw-r--r-- | llvm/lib/IR/Constants.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/llvm/lib/IR/Constants.cpp b/llvm/lib/IR/Constants.cpp index 0fb0db3..650b076 100644 --- a/llvm/lib/IR/Constants.cpp +++ b/llvm/lib/IR/Constants.cpp @@ -559,10 +559,6 @@ void llvm::deleteConstant(Constant *C) { } } -bool Constant::canTrap() const { - return false; -} - /// Check if C contains a GlobalValue for which Predicate is true. static bool ConstHasGlobalValuePredicate(const Constant *C, |