[PATCH] D28003: [AArch64] Remove a redundant check. NFC

Haicheng Wu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 21 13:51:18 PST 2016


This revision was automatically updated to reflect the committed changes.
Closed by commit rL290275: [AArch64] Remove a redundant check. NFC. (authored by haicheng).

Changed prior to commit:
  https://reviews.llvm.org/D28003?vs=82158&id=82268#toc

Repository:
  rL LLVM

https://reviews.llvm.org/D28003

Files:
  llvm/trunk/lib/Target/AArch64/AArch64ISelLowering.cpp


Index: llvm/trunk/lib/Target/AArch64/AArch64ISelLowering.cpp
===================================================================
--- llvm/trunk/lib/Target/AArch64/AArch64ISelLowering.cpp
+++ llvm/trunk/lib/Target/AArch64/AArch64ISelLowering.cpp
@@ -7481,8 +7481,7 @@
 
   // Check reg1 + SIZE_IN_BYTES * reg2 and reg1 + reg2
 
-  return !AM.Scale || AM.Scale == 1 ||
-         (AM.Scale > 0 && (uint64_t)AM.Scale == NumBytes);
+  return AM.Scale == 1 || (AM.Scale > 0 && (uint64_t)AM.Scale == NumBytes);
 }
 
 int AArch64TargetLowering::getScalingFactorCost(const DataLayout &DL,


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D28003.82268.patch
Type: text/x-patch
Size: 580 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20161221/9db19849/attachment.bin>


More information about the llvm-commits mailing list