summaryrefslogtreecommitdiff
path: root/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorNate Begeman <natebegeman@mac.com>2006-01-14 01:25:24 +0000
committerNate Begeman <natebegeman@mac.com>2006-01-14 01:25:24 +0000
commit6fb3bd6a658940287789198d3207b0da04c0a4e6 (patch)
tree7d3b9be2b6b00fd564f0b884de5c1999b1985890 /lib/Transforms/Utils/Local.cpp
parent6283760cd13fa3f41c7f6462456661ea54ded980 (diff)
downloadllvm-6fb3bd6a658940287789198d3207b0da04c0a4e6.tar.gz
llvm-6fb3bd6a658940287789198d3207b0da04c0a4e6.tar.bz2
llvm-6fb3bd6a658940287789198d3207b0da04c0a4e6.tar.xz
Add bswap intrinsics as documented in the Language Reference
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@25309 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Transforms/Utils/Local.cpp')
-rw-r--r--lib/Transforms/Utils/Local.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/Transforms/Utils/Local.cpp b/lib/Transforms/Utils/Local.cpp
index 4e3b3e972e..c4b69a40d4 100644
--- a/lib/Transforms/Utils/Local.cpp
+++ b/lib/Transforms/Utils/Local.cpp
@@ -298,6 +298,9 @@ bool llvm::isInstructionTriviallyDead(Instruction *I) {
case Intrinsic::frameaddress:
case Intrinsic::stacksave:
case Intrinsic::isunordered:
+ case Intrinsic::bswap_i16:
+ case Intrinsic::bswap_i32:
+ case Intrinsic::bswap_i64:
case Intrinsic::ctpop:
case Intrinsic::ctlz:
case Intrinsic::cttz: