[PATCH] D82556: [Hexagon][NFC] Remove redundant condition

Balogh, Ádám via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 1 00:29:52 PDT 2020


This revision was automatically updated to reflect the committed changes.
Closed by commit rGec5ba353fab7: [Hexagon][NFC] Remove redundant condition (authored by baloghadamsoftware).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D82556/new/

https://reviews.llvm.org/D82556

Files:
  llvm/lib/Target/Hexagon/HexagonNewValueJump.cpp


Index: llvm/lib/Target/Hexagon/HexagonNewValueJump.cpp
===================================================================
--- llvm/lib/Target/Hexagon/HexagonNewValueJump.cpp
+++ llvm/lib/Target/Hexagon/HexagonNewValueJump.cpp
@@ -291,7 +291,7 @@
     // at machine code level, we don't need this, but if we decide
     // to move new value jump prior to RA, we would be needing this.
     MachineRegisterInfo &MRI = MF.getRegInfo();
-    if (secondReg && !Register::isPhysicalRegister(cmpOp2)) {
+    if (!Register::isPhysicalRegister(cmpOp2)) {
       MachineInstr *def = MRI.getVRegDef(cmpOp2);
       if (def->getOpcode() == TargetOpcode::COPY)
         return false;


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D82556.274693.patch
Type: text/x-patch
Size: 672 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200701/cd8c306d/attachment.bin>


More information about the llvm-commits mailing list