32#define GET_GICOMBINER_DEPS
33#include "AArch64GenPreLegalizeGICombiner.inc"
34#undef GET_GICOMBINER_DEPS
36#define DEBUG_TYPE "aarch64-prelegalizer-combiner"
39using namespace MIPatternMatch;
43#define GET_GICOMBINER_TYPES
44#include "AArch64GenPreLegalizeGICombiner.inc"
45#undef GET_GICOMBINER_TYPES
50 assert(
MI.getOpcode() == TargetOpcode::G_FCONSTANT);
52 const unsigned DstSize =
MRI.getType(DstReg).getSizeInBits();
53 if (DstSize != 32 && DstSize != 64)
59 return all_of(
MRI.use_nodbg_instructions(DstReg),
65 assert(
MI.getOpcode() == TargetOpcode::G_FCONSTANT);
67 const APFloat &ImmValAPF =
MI.getOperand(1).getFPImm()->getValueAPF();
77 assert(
MI.getOpcode() == TargetOpcode::G_ICMP && KB);
84 LLT LHSTy =
MRI.getType(LHS);
95 LLT WideTy =
MRI.getType(WideReg);
107 assert(
MI.getOpcode() == TargetOpcode::G_ICMP);
109 LLT WideTy =
MRI.getType(WideReg);
115 MI.getOperand(2).setReg(WideReg);
116 MI.getOperand(3).setReg(WideZero.getReg(0));
126 std::pair<uint64_t, uint64_t> &MatchInfo) {
127 assert(
MI.getOpcode() == TargetOpcode::G_GLOBAL_VALUE);
129 auto &GlobalOp =
MI.getOperand(1);
130 auto *GV = GlobalOp.getGlobal();
131 if (GV->isThreadLocal())
155 for (
auto &UseInstr :
MRI.use_nodbg_instructions(Dst)) {
156 if (UseInstr.getOpcode() != TargetOpcode::G_PTR_ADD)
159 UseInstr.getOperand(2).getReg(),
MRI);
162 MinOffset = std::min(MinOffset, Cst->Value.getZExtValue());
167 uint64_t CurrOffset = GlobalOp.getOffset();
168 uint64_t NewOffset = MinOffset + CurrOffset;
169 if (NewOffset <= CurrOffset)
181 if (NewOffset >= (1 << 20))
184 Type *
T = GV->getValueType();
186 NewOffset > GV->getDataLayout().getTypeAllocSize(
T))
188 MatchInfo = std::make_pair(NewOffset, MinOffset);
194 std::pair<uint64_t, uint64_t> &MatchInfo) {
216 std::tie(
Offset, MinOffset) = MatchInfo;
217 B.setInstrAndDebugLoc(*std::next(
MI.getIterator()));
219 auto &GlobalOp =
MI.getOperand(1);
220 auto *GV = GlobalOp.getGlobal();
221 GlobalOp.ChangeToGA(GV,
Offset, GlobalOp.getTargetFlags());
224 MI.getOperand(0).setReg(NewGVDst);
228 B.buildConstant(
LLT::scalar(64), -
static_cast<int64_t
>(MinOffset)));
236 std::tuple<Register, Register, bool> &MatchInfo) {
237 assert(
MI.getOpcode() == TargetOpcode::G_VECREDUCE_ADD &&
238 "Expected a G_VECREDUCE_ADD instruction");
239 assert(STI.hasDotProd() &&
"Target should have Dot Product feature");
244 LLT DstTy =
MRI.getType(DstReg);
245 LLT MidTy =
MRI.getType(MidReg);
250 auto I1Opc =
I1->getOpcode();
251 if (I1Opc == TargetOpcode::G_MUL) {
254 if (!
MRI.hasOneNonDBGUse(MidReg))
271 SrcTy =
MRI.getType(
I1->getOperand(1).getReg());
272 std::get<0>(MatchInfo) =
I1->getOperand(1).getReg();
273 std::get<1>(MatchInfo) = 0;
276 if (I1Opc == TargetOpcode::G_ZEXT)
277 std::get<2>(MatchInfo) = 0;
278 else if (I1Opc == TargetOpcode::G_SEXT)
279 std::get<2>(MatchInfo) = 1;
293 std::tuple<Register, Register, bool> &MatchInfo) {
294 assert(
MI.getOpcode() == TargetOpcode::G_VECREDUCE_ADD &&
295 "Expected a G_VECREDUCE_ADD instruction");
296 assert(STI.hasDotProd() &&
"Target should have Dot Product feature");
300 std::get<2>(MatchInfo) ? AArch64::G_SDOT : AArch64::G_UDOT;
301 Register Ext1SrcReg = std::get<0>(MatchInfo);
306 if (std::get<1>(MatchInfo) == 0)
311 Ext2SrcReg = std::get<1>(MatchInfo);
314 LLT SrcTy =
MRI.getType(Ext1SrcReg);
328 if (NumOfDotMI == 1) {
330 auto Dot = Builder.
buildInstr(DotOpcode, {MidTy},
331 {Zeroes, Ext1SrcReg, Ext2SrcReg});
343 LLT LeftoverTy1, LeftoverTy2;
345 LeftoverTy1, Ext1UnmergeReg, Leftover1, Builder,
348 LeftoverTy2, Ext2UnmergeReg, Leftover2, Builder,
361 {Leftover1[0], v8Zeroes})
366 {Leftover2[0], v8Zeroes})
373 Ext1UnmergeReg, Builder,
MRI);
375 Ext2UnmergeReg, Builder,
MRI);
380 unsigned NumElements = 0;
381 for (
unsigned i = 0; i < Ext1UnmergeReg.
size(); i++) {
384 if (
MRI.getType(Ext1UnmergeReg[i]).getNumElements() == 16) {
394 .buildInstr(DotOpcode, {
MRI.getType(Zeroes)},
395 {Zeroes, Ext1UnmergeReg[i], Ext2UnmergeReg[i]})
405 ConcatMI->getOperand(0).getReg());
409 MI.eraseFromParent();
415 std::pair<Register, bool> &MatchInfo) {
416 assert(
MI.getOpcode() == TargetOpcode::G_VECREDUCE_ADD &&
417 "Expected G_VECREDUCE_ADD Opcode");
423 if (ExtOpc == TargetOpcode::G_ZEXT)
424 std::get<1>(MatchInfo) = 0;
425 else if (ExtOpc == TargetOpcode::G_SEXT)
426 std::get<1>(MatchInfo) = 1;
432 LLT ExtSrcTy =
MRI.getType(ExtSrcReg);
433 LLT DstTy =
MRI.getType(
MI.getOperand(0).getReg());
440 std::get<0>(MatchInfo) = ExtSrcReg;
448 std::pair<Register, bool> &MatchInfo) {
449 assert(
MI.getOpcode() == TargetOpcode::G_VECREDUCE_ADD &&
450 "Expected G_VECREDUCE_ADD Opcode");
452 unsigned Opc = std::get<1>(MatchInfo) ? AArch64::G_SADDLV : AArch64::G_UADDLV;
453 Register SrcReg = std::get<0>(MatchInfo);
455 LLT SrcTy =
MRI.getType(SrcReg);
456 LLT DstTy =
MRI.getType(DstReg);
464 if ((SrcScalSize == 8 && SrcNumElem > 16) ||
465 (SrcScalSize == 16 && SrcNumElem > 8) ||
466 (SrcScalSize == 32 && SrcNumElem > 4)) {
470 if (SrcScalSize == 8)
472 else if (SrcScalSize == 16)
474 else if (SrcScalSize == 32)
481 extractParts(SrcReg, SrcTy, MainTy, LeftoverTy, WorkingRegisters,
482 LeftoverRegs,
B,
MRI);
483 for (
unsigned I = 0;
I < LeftoverRegs.
size();
I++) {
494 for (
unsigned I = 0;
I < WorkingRegisters.
size();
I++) {
497 LLT WorkingRegTy =
MRI.getType(WorkingRegisters[
I]);
500 WorkingRegisters[
I] =
501 B.buildInstr(std::get<1>(MatchInfo) ? TargetOpcode::G_SEXT
502 : TargetOpcode::G_ZEXT,
510 :
LLT::fixed_vector(2, 64);
512 B.buildInstr(Opc, {addlvTy}, {WorkingRegisters[
I]}).
getReg(0);
519 if (MidScalarSize == 32 || MidScalarSize == 64) {
520 WorkingRegisters[
I] =
B.buildInstr(AArch64::G_EXTRACT_VECTOR_ELT,
521 {MidScalarLLT}, {addlvReg, zeroReg})
524 Register extractReg =
B.buildInstr(AArch64::G_EXTRACT_VECTOR_ELT,
527 WorkingRegisters[
I] =
528 B.buildTrunc({MidScalarLLT}, {extractReg}).
getReg(0);
533 if (WorkingRegisters.
size() > 1) {
534 outReg =
B.buildAdd(MidScalarLLT, WorkingRegisters[0], WorkingRegisters[1])
536 for (
unsigned I = 2;
I < WorkingRegisters.
size();
I++) {
537 outReg =
B.buildAdd(MidScalarLLT, outReg, WorkingRegisters[
I]).getReg(0);
540 outReg = WorkingRegisters[0];
546 B.buildInstr(std::get<1>(MatchInfo) ? TargetOpcode::G_SEXT
547 : TargetOpcode::G_ZEXT,
550 B.buildCopy(DstReg, outReg);
553 MI.eraseFromParent();
562 assert((
MI.getOpcode() == TargetOpcode::G_ADD ||
563 MI.getOpcode() == TargetOpcode::G_SUB) &&
564 "Expected a G_ADD or G_SUB instruction\n");
567 LLT DstTy =
MRI.getType(DstReg);
572 Register ExtDstReg =
MI.getOperand(1).getReg();
573 LLT Ext1SrcTy =
MRI.getType(SrcReg1);
574 LLT Ext2SrcTy =
MRI.getType(SrcReg2);
575 unsigned ExtDstScal =
MRI.getType(ExtDstReg).getScalarSizeInBits();
577 if (((Ext1SrcScal == 8 && ExtDstScal == 32) ||
578 ((Ext1SrcScal == 8 || Ext1SrcScal == 16) && ExtDstScal == 64)) &&
579 Ext1SrcTy == Ext2SrcTy)
588 LLT SrcTy =
MRI.getType(SrcReg1);
590 unsigned Opc = isSExt ? TargetOpcode::G_SEXT : TargetOpcode::G_ZEXT;
594 B.buildInstr(
MI.getOpcode(), {MidTy}, {Ext1Reg, Ext2Reg}).getReg(0);
599 if (
MI.getOpcode() == TargetOpcode::G_ADD)
600 B.buildInstr(Opc, {DstReg}, {AddReg});
602 B.buildSExt(DstReg, AddReg);
604 MI.eraseFromParent();
638 auto &
MRI = *
B.getMRI();
647 LLT WideTy0 =
MRI.getType(Op0Wide);
648 LLT WideTy1 =
MRI.getType(Op1Wide);
650 LLT OpTy =
MRI.getType(ResVal);
657 if (Op0WideDef->
getOpcode() != TargetOpcode::G_ASSERT_ZEXT ||
658 Op1WideDef->
getOpcode() != TargetOpcode::G_ASSERT_ZEXT ||
666 (OpTySize != 8 && OpTySize != 16))
670 Register ResStatus =
MI.getOperand(1).getReg();
671 if (!
MRI.hasOneNonDBGUse(ResStatus))
674 if (CondUser->
getOpcode() != TargetOpcode::G_BRCOND)
682 if (
any_of(
MRI.use_nodbg_instructions(ResVal),
685 (I.getParent() == FailMBB || I.getParent() == CurrentMBB);
690 B.setInstrAndDebugLoc(*
MI.getNextNode());
691 MI.eraseFromParent();
694 Register AddDst =
MRI.cloneVirtualRegister(Op0Wide);
695 B.buildInstr(TargetOpcode::G_ADD, {AddDst}, {Op0Wide, Op1Wide});
699 Register CondBit =
MRI.cloneVirtualRegister(Op0Wide);
702 B.buildConstant(
LLT::scalar(32), OpTySize == 8 ? 1 << 8 : 1 << 16));
708 B.buildZExtOrTrunc(ResVal, AddDst);
712 auto OldR =
U.getParent()->getOperand(0).getReg();
714 U.getParent()->eraseFromParent();
722class AArch64PreLegalizerCombinerImpl :
public Combiner {
725 const AArch64PreLegalizerCombinerImplRuleConfig &RuleConfig;
729 AArch64PreLegalizerCombinerImpl(
732 const AArch64PreLegalizerCombinerImplRuleConfig &RuleConfig,
736 static const char *
getName() {
return "AArch6400PreLegalizerCombiner"; }
743#define GET_GICOMBINER_CLASS_MEMBERS
744#include "AArch64GenPreLegalizeGICombiner.inc"
745#undef GET_GICOMBINER_CLASS_MEMBERS
748#define GET_GICOMBINER_IMPL
749#include "AArch64GenPreLegalizeGICombiner.inc"
750#undef GET_GICOMBINER_IMPL
752AArch64PreLegalizerCombinerImpl::AArch64PreLegalizerCombinerImpl(
755 const AArch64PreLegalizerCombinerImplRuleConfig &RuleConfig,
758 :
Combiner(MF, CInfo, TPC, &KB, CSEInfo),
759 Helper(Observer,
B,
true, &KB, MDT, LI),
760 RuleConfig(RuleConfig), STI(STI),
762#include
"AArch64GenPreLegalizeGICombiner.inc"
767bool AArch64PreLegalizerCombinerImpl::tryCombineAll(
MachineInstr &
MI)
const {
768 if (tryCombineAllImpl(
MI))
771 unsigned Opc =
MI.getOpcode();
773 case TargetOpcode::G_SHUFFLE_VECTOR:
775 case TargetOpcode::G_UADDO:
776 return tryToSimplifyUADDO(
MI,
B, Helper, Observer);
777 case TargetOpcode::G_MEMCPY_INLINE:
779 case TargetOpcode::G_MEMCPY:
780 case TargetOpcode::G_MEMMOVE:
781 case TargetOpcode::G_MEMSET: {
784 unsigned MaxLen = CInfo.EnableOpt ? 0 : 32;
788 if (Opc == TargetOpcode::G_MEMSET)
804 AArch64PreLegalizerCombiner();
807 return "AArch64PreLegalizerCombiner";
815 AArch64PreLegalizerCombinerImplRuleConfig RuleConfig;
819void AArch64PreLegalizerCombiner::getAnalysisUsage(
AnalysisUsage &AU)
const {
832AArch64PreLegalizerCombiner::AArch64PreLegalizerCombiner()
836 if (!RuleConfig.parseCommandLineOption())
840bool AArch64PreLegalizerCombiner::runOnMachineFunction(
MachineFunction &MF) {
842 MachineFunctionProperties::Property::FailedISel))
844 auto &TPC = getAnalysis<TargetPassConfig>();
848 getAnalysis<GISelCSEAnalysisWrapperPass>().getCSEWrapper();
849 auto *CSEInfo = &
Wrapper.get(TPC.getCSEConfig());
852 const auto *LI =
ST.getLegalizerInfo();
857 GISelKnownBits *KB = &getAnalysis<GISelKnownBitsAnalysis>().get(MF);
859 &getAnalysis<MachineDominatorTreeWrapperPass>().getDomTree();
861 nullptr, EnableOpt,
F.hasOptSize(),
864 CInfo.MaxIterations = 1;
865 CInfo.ObserverLvl = CombinerInfo::ObserverLevel::SinglePass;
868 CInfo.EnableFullDCE =
true;
869 AArch64PreLegalizerCombinerImpl Impl(MF, CInfo, &TPC, *KB, CSEInfo,
870 RuleConfig, ST, MDT, LI);
871 return Impl.combineMachineInstrs();
874char AArch64PreLegalizerCombiner::ID = 0;
876 "Combine AArch64 machine instrs before legalization",
887 return new AArch64PreLegalizerCombiner();
unsigned const MachineRegisterInfo * MRI
#define GET_GICOMBINER_CONSTRUCTOR_INITS
Combine AArch64 machine instrs before legalization
amdgpu aa AMDGPU Address space based Alias Analysis Wrapper
static GCRegistry::Add< OcamlGC > B("ocaml", "ocaml 3.10-compatible GC")
Provides analysis for continuously CSEing during GISel passes.
This contains common combine transformations that may be used in a combine pass,or by the target else...
Option class for Targets to specify which operations are combined how and when.
This contains the base class for all Combiners generated by TableGen.
Provides analysis for querying information about KnownBits during GISel passes.
Contains matchers for matching SSA Machine Instructions.
This file declares the MachineIRBuilder class.
static unsigned getReg(const MCDisassembler *D, unsigned RC, unsigned RegNo)
#define INITIALIZE_PASS_DEPENDENCY(depName)
#define INITIALIZE_PASS_END(passName, arg, name, cfg, analysis)
#define INITIALIZE_PASS_BEGIN(passName, arg, name, cfg, analysis)
static StringRef getName(Value *V)
assert(ImpDefSCC.getReg()==AMDGPU::SCC &&ImpDefSCC.isDef())
Target-Independent Code Generator Pass Configuration Options pass.
unsigned ClassifyGlobalReference(const GlobalValue *GV, const TargetMachine &TM) const
ClassifyGlobalReference - Find the target operand flags that describe how a global value should be re...
APInt bitcastToAPInt() const
Represent the analysis usage information of a pass.
AnalysisUsage & addRequired()
AnalysisUsage & addPreserved()
Add the specified Pass class to the set of analyses preserved by this pass.
void setPreservesCFG()
This function should be called by the pass, iff they do not:
Predicate
This enumeration lists the possible predicates for CmpInst subclasses.
void replaceRegWith(MachineRegisterInfo &MRI, Register FromReg, Register ToReg) const
MachineRegisterInfo::replaceRegWith() and inform the observer of the changes.
bool tryEmitMemcpyInline(MachineInstr &MI) const
Emit loads and stores that perform the given memcpy.
bool tryCombineShuffleVector(MachineInstr &MI) const
Try to combine G_SHUFFLE_VECTOR into G_CONCAT_VECTORS.
bool tryCombineMemCpyFamily(MachineInstr &MI, unsigned MaxLen=0) const
Optimize memcpy intrinsics et al, e.g.
virtual bool tryCombineAll(MachineInstr &I) const =0
FunctionPass class - This class is used to implement most global optimizations.
The actual analysis pass wrapper.
Simple wrapper that does the following.
Abstract class that contains various methods for clients to notify about changes.
virtual void changingInstr(MachineInstr &MI)=0
This instruction is about to be mutated in some way.
virtual void changedInstr(MachineInstr &MI)=0
This instruction was mutated in some way.
virtual void erasingInstr(MachineInstr &MI)=0
An instruction is about to be erased.
To use KnownBitsInfo analysis in a pass, KnownBitsInfo &Info = getAnalysis<GISelKnownBitsInfoAnalysis...
unsigned computeNumSignBits(Register R, const APInt &DemandedElts, unsigned Depth=0)
bool isEquality() const
Return true if this predicate is either EQ or NE.
constexpr unsigned getScalarSizeInBits() const
constexpr bool isScalar() const
static constexpr LLT scalar(unsigned SizeInBits)
Get a low-level scalar or aggregate "bag of bits".
constexpr uint16_t getNumElements() const
Returns the number of elements in a vector LLT.
constexpr bool isVector() const
constexpr TypeSize getSizeInBits() const
Returns the total size of the type. Must only be called on sized types.
constexpr LLT changeElementSize(unsigned NewEltSize) const
If this type is a vector, return a vector with the same number of elements but the new element size.
static constexpr LLT fixed_vector(unsigned NumElements, unsigned ScalarSizeInBits)
Get a low-level fixed-width vector of some number of elements and element width.
Analysis pass which computes a MachineDominatorTree.
DominatorTree Class - Concrete subclass of DominatorTreeBase that is used to compute a normal dominat...
MachineFunctionPass - This class adapts the FunctionPass interface to allow convenient creation of pa...
void getAnalysisUsage(AnalysisUsage &AU) const override
getAnalysisUsage - Subclasses that override getAnalysisUsage must call this.
virtual bool runOnMachineFunction(MachineFunction &MF)=0
runOnMachineFunction - This method must be overloaded to perform the desired machine code transformat...
bool hasProperty(Property P) const
const TargetSubtargetInfo & getSubtarget() const
getSubtarget - Return the subtarget for which this machine code is being compiled.
Function & getFunction()
Return the LLVM function that this machine code represents.
const MachineFunctionProperties & getProperties() const
Get the function properties.
const TargetMachine & getTarget() const
getTarget - Return the target machine this machine code is compiled with
Helper class to build MachineInstr.
MachineInstrBuilder buildConcatVectors(const DstOp &Res, ArrayRef< Register > Ops)
Build and insert Res = G_CONCAT_VECTORS Op0, ...
MachineInstrBuilder buildInstr(unsigned Opcode)
Build and insert <empty> = Opcode <empty>.
void setInstrAndDebugLoc(MachineInstr &MI)
Set the insertion point to before MI, and set the debug loc to MI's loc.
MachineInstrBuilder buildVecReduceAdd(const DstOp &Dst, const SrcOp &Src)
Build and insert Res = G_VECREDUCE_ADD Src.
virtual MachineInstrBuilder buildConstant(const DstOp &Res, const ConstantInt &Val)
Build and insert Res = G_CONSTANT Val.
Representation of each machine instruction.
unsigned getOpcode() const
Returns the opcode of this MachineInstr.
const MachineBasicBlock * getParent() const
const MachineOperand & getOperand(unsigned i) const
MachineOperand class - Representation of each machine instruction operand.
MachineBasicBlock * getMBB() const
MachineInstr * getParent()
getParent - Return the instruction that this operand belongs to.
Register getReg() const
getReg - Returns the register number.
MachineRegisterInfo - Keep track of information for virtual and physical registers,...
static PassRegistry * getPassRegistry()
getPassRegistry - Access the global registry object, which is automatically initialized at applicatio...
virtual StringRef getPassName() const
getPassName - Return a nice clean name for a pass.
Wrapper class representing virtual and physical registers.
void push_back(const T &Elt)
This is a 'vector' (really, a variable-sized array), optimized for the case when the array is small.
StringRef - Represent a constant reference to a string, i.e.
CodeGenOptLevel getOptLevel() const
Returns the optimization level: None, Less, Default, or Aggressive.
Target-Independent Code Generator Pass Configuration Options.
The instances of the Type class are immutable: once they are created, they are never changed.
A Use represents the edge between a Value definition and its users.
#define llvm_unreachable(msg)
Marks that the current location is not supposed to be reachable.
bool tryEmitBZero(MachineInstr &MI, MachineIRBuilder &MIRBuilder, bool MinSize)
Replace a G_MEMSET with a value of 0 with a G_BZERO instruction if it is supported and beneficial to ...
unsigned ID
LLVM IR allows to use arbitrary numbers as calling convention identifiers.
operand_type_match m_Reg()
SpecificConstantMatch m_SpecificICst(int64_t RequestedValue)
Matches a constant equal to RequestedValue.
UnaryOp_match< SrcTy, TargetOpcode::G_ZEXT > m_GZExt(const SrcTy &Src)
bool mi_match(Reg R, const MachineRegisterInfo &MRI, Pattern &&P)
UnaryOp_match< SrcTy, TargetOpcode::G_TRUNC > m_GTrunc(const SrcTy &Src)
This is an optimization pass for GlobalISel generic memory operations.
FunctionPass * createAArch64PreLegalizerCombiner()
bool all_of(R &&range, UnaryPredicate P)
Provide wrappers to std::all_of which take ranges instead of having to pass begin/end explicitly.
iterator_range< early_inc_iterator_impl< detail::IterOfRange< RangeT > > > make_early_inc_range(RangeT &&Range)
Make a range that does early increment to allow mutation of the underlying range without disrupting i...
MachineInstr * getDefIgnoringCopies(Register Reg, const MachineRegisterInfo &MRI)
Find the def instruction for Reg, folding away any trivial copies.
bool any_of(R &&range, UnaryPredicate P)
Provide wrappers to std::any_of which take ranges instead of having to pass begin/end explicitly.
void report_fatal_error(Error Err, bool gen_crash_diag=true)
Report a serious error, calling any installed error handler.
void initializeAArch64PreLegalizerCombinerPass(PassRegistry &)
void extractParts(Register Reg, LLT Ty, int NumParts, SmallVectorImpl< Register > &VRegs, MachineIRBuilder &MIRBuilder, MachineRegisterInfo &MRI)
Helper function to split a wide generic register into bitwise blocks with the given Type (which impli...
void getSelectionDAGFallbackAnalysisUsage(AnalysisUsage &AU)
Modify analysis usage so it preserves passes required for the SelectionDAG fallback.
std::optional< ValueAndVReg > getIConstantVRegValWithLookThrough(Register VReg, const MachineRegisterInfo &MRI, bool LookThroughInstrs=true)
If VReg is defined by a statically evaluable chain of instructions rooted on a G_CONSTANT returns its...
auto instrs(const MachineBasicBlock &BB)