[llvm] r232955 - [Hexagon] Simplify boolean expression

Colin LeMahieu colinl at codeaurora.org
Mon Mar 23 09:01:03 PDT 2015


Author: colinl
Date: Mon Mar 23 11:01:03 2015
New Revision: 232955

URL: http://llvm.org/viewvc/llvm-project?rev=232955&view=rev
Log:
[Hexagon] Simplify boolean expression

Patch by Richard
http://reviews.llvm.org/D8523

Modified:
    llvm/trunk/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp

Modified: llvm/trunk/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp?rev=232955&r1=232954&r2=232955&view=diff
==============================================================================
--- llvm/trunk/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp (original)
+++ llvm/trunk/lib/Target/Hexagon/HexagonVLIWPacketizer.cpp Mon Mar 23 11:01:03 2015
@@ -403,10 +403,7 @@ static bool DoesModifyCalleeSavedReg(Mac
 // or new-value store.
 bool HexagonPacketizerList::isNewifiable(MachineInstr* MI) {
   const HexagonInstrInfo *QII = (const HexagonInstrInfo *) TII;
-  if ( isCondInst(MI) || QII->mayBeNewStore(MI))
-    return true;
-  else
-    return false;
+  return isCondInst(MI) || QII->mayBeNewStore(MI);
 }
 
 bool HexagonPacketizerList::isCondInst (MachineInstr* MI) {





More information about the llvm-commits mailing list