summaryrefslogtreecommitdiffstats
path: root/llvm/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
commit82049eba2cd250127ebec6dcf9ab73b5330a81f6 (patch)
treec3de0c82928e7a46d3a05f6493b591064b44faca /llvm/lib/Transforms/Utils/Local.cpp
parentf2b38dbdc733c73e1f0929e2dd85aa6e9b7e4525 (diff)
downloadbcm5719-llvm-82049eba2cd250127ebec6dcf9ab73b5330a81f6.tar.gz
bcm5719-llvm-82049eba2cd250127ebec6dcf9ab73b5330a81f6.zip
Add bswap intrinsics as documented in the Language Reference
llvm-svn: 25309
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
-rw-r--r--llvm/lib/Transforms/Utils/Local.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/llvm/lib/Transforms/Utils/Local.cpp b/llvm/lib/Transforms/Utils/Local.cpp
index 4e3b3e972e2..c4b69a40d4c 100644
--- a/llvm/lib/Transforms/Utils/Local.cpp
+++ b/llvm/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:
OpenPOWER on IntegriCloud