From 3db893b3712a5cc98ac0dbc88e08df70069be216 Mon Sep 17 00:00:00 2001 From: Aditya Nandakumar Date: Wed, 22 Apr 2020 17:15:00 -0700 Subject: [PATCH] [GISel]: Relax opcode checking at the top level to enable CSE Loosen the restriction on what kinds of opcodes can be CSEd as targets may want to CSE some generic target specific pseudos. NFC as far as this change is concerned as CSEConfig still pretty much is a subset of this check. Differential Revision: https://reviews.llvm.org/D78684 --- llvm/lib/CodeGen/GlobalISel/CSEInfo.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/llvm/lib/CodeGen/GlobalISel/CSEInfo.cpp b/llvm/lib/CodeGen/GlobalISel/CSEInfo.cpp index 0e4fa21..e258ffb 100644 --- a/llvm/lib/CodeGen/GlobalISel/CSEInfo.cpp +++ b/llvm/lib/CodeGen/GlobalISel/CSEInfo.cpp @@ -217,9 +217,6 @@ void GISelCSEInfo::handleRecordedInsts() { } bool GISelCSEInfo::shouldCSE(unsigned Opc) const { - // Only GISel opcodes are CSEable - if (!isPreISelGenericOpcode(Opc)) - return false; assert(CSEOpt.get() && "CSEConfig not set"); return CSEOpt->shouldCSEOpc(Opc); } -- 2.7.4