We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5d77932 commit c585712Copy full SHA for c585712
llvm/lib/Target/RISCV/GISel/RISCVInstructionSelector.cpp
@@ -530,9 +530,9 @@ bool RISCVInstructionSelector::select(MachineInstr &MI) {
530
MachineFunction &MF = *MBB.getParent();
531
MachineIRBuilder MIB(MI);
532
533
- const unsigned Opc = MI.getOpcode();
534
- bool OpcWasGSplatVector = Opc == TargetOpcode::G_SPLAT_VECTOR;
+ bool OpcWasGSplatVector = MI.getOpcode() == TargetOpcode::G_SPLAT_VECTOR;
535
preISelLower(MI, MIB);
+ const unsigned Opc = MI.getOpcode();
536
537
if (!MI.isPreISelOpcode() || Opc == TargetOpcode::G_PHI) {
538
if (Opc == TargetOpcode::PHI || Opc == TargetOpcode::G_PHI) {
0 commit comments