[llvm] d71ef3e - [X86] Merge identical setOperationAction calls. NFC.
Simon Pilgrim via llvm-commits
llvm-commits at lists.llvm.org
Sun Feb 4 05:39:15 PST 2024
Author: Simon Pilgrim
Date: 2024-02-04T13:38:59Z
New Revision: d71ef3e75c6325f0c10c19ee34e2c0337a0fd452
URL: https://github.com/llvm/llvm-project/commit/d71ef3e75c6325f0c10c19ee34e2c0337a0fd452
DIFF: https://github.com/llvm/llvm-project/commit/d71ef3e75c6325f0c10c19ee34e2c0337a0fd452.diff
LOG: [X86] Merge identical setOperationAction calls. NFC.
Added:
Modified:
llvm/lib/Target/X86/X86ISelLowering.cpp
Removed:
################################################################################
diff --git a/llvm/lib/Target/X86/X86ISelLowering.cpp b/llvm/lib/Target/X86/X86ISelLowering.cpp
index e0864071e44fc..6dc3df2e72d26 100644
--- a/llvm/lib/Target/X86/X86ISelLowering.cpp
+++ b/llvm/lib/Target/X86/X86ISelLowering.cpp
@@ -430,10 +430,7 @@ X86TargetLowering::X86TargetLowering(const X86TargetMachine &TM,
setOperationAction(ISD::CTPOP , MVT::i8 , Custom);
setOperationAction(ISD::CTPOP , MVT::i16 , Custom);
setOperationAction(ISD::CTPOP , MVT::i32 , Custom);
- if (Subtarget.is64Bit())
- setOperationAction(ISD::CTPOP , MVT::i64 , Custom);
- else
- setOperationAction(ISD::CTPOP , MVT::i64 , Custom);
+ setOperationAction(ISD::CTPOP , MVT::i64 , Custom);
}
setOperationAction(ISD::READCYCLECOUNTER , MVT::i64 , Custom);
More information about the llvm-commits
mailing list