[llvm] [PowerPC][NFC] clean up if-else block in PPCRegisterInfo.cpp (PR #140084)

zhijian lin via llvm-commits llvm-commits at lists.llvm.org
Tue May 20 12:19:30 PDT 2025


================
@@ -1610,62 +1610,69 @@ PPCRegisterInfo::eliminateFrameIndex(MachineBasicBlock::iterator II,
   // Get the instruction opcode.
   unsigned OpC = MI.getOpcode();
 
-  if ((OpC == PPC::DYNAREAOFFSET || OpC == PPC::DYNAREAOFFSET8)) {
+  switch (OpC) {
----------------
diggerlin wrote:

there is not default for the switch , is there a compile warning or error for it ?

https://github.com/llvm/llvm-project/pull/140084


More information about the llvm-commits mailing list