summaryrefslogtreecommitdiffstats
path: root/clang/lib/CodeGen
diff options
context:
space:
mode:
authorFangrui Song <maskray@google.com>2020-01-06 10:16:28 -0800
committerFangrui Song <maskray@google.com>2020-01-06 15:51:02 -0800
commit6904cd948674df7f55843519695dbc95157a9429 (patch)
tree0a8a3c99830e0e6bbcb5ea07a960a6df51a4cca2 /clang/lib/CodeGen
parentc6fd16af2be98b49d663285e3808ecde61bec614 (diff)
downloadbcm5719-llvm-6904cd948674df7f55843519695dbc95157a9429.tar.gz
bcm5719-llvm-6904cd948674df7f55843519695dbc95157a9429.zip
Add Triple::isX86()
Reviewed By: craig.topper, skan Differential Revision: https://reviews.llvm.org/D72247
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r--clang/lib/CodeGen/CGBuiltin.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp
index 12517709573..4b89b1b83a6 100644
--- a/clang/lib/CodeGen/CGBuiltin.cpp
+++ b/clang/lib/CodeGen/CGBuiltin.cpp
@@ -821,8 +821,7 @@ static llvm::Value *EmitBitTestIntrinsic(CodeGenFunction &CGF,
// X86 has special BT, BTC, BTR, and BTS instructions that handle the array
// indexing operation internally. Use them if possible.
- llvm::Triple::ArchType Arch = CGF.getTarget().getTriple().getArch();
- if (Arch == llvm::Triple::x86 || Arch == llvm::Triple::x86_64)
+ if (CGF.getTarget().getTriple().isX86())
return EmitX86BitTestIntrinsic(CGF, BT, E, BitBase, BitPos);
// Otherwise, use generic code to load one byte and test the bit. Use all but
OpenPOWER on IntegriCloud