[PATCH] D5591: AArch64: Fold immediate into the immediate field of logical instructions

Akira Hatanaka via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 19 16:51:31 PDT 2016


ahatanak updated this revision to Diff 71888.
ahatanak added a comment.

Rebase and make a couple of changes:

- Add comments.
- In optimizeLogicalImm, return false instead of true when the immediate is already a bimm32 or bimm64 so that it doesn't inhibit the optimization done later in AArch64ISelDAGToDAG.cpp that emits BFXIL.
- Remove redundant instructions in bitreverse.ll.


https://reviews.llvm.org/D5591

Files:
  include/llvm/Target/TargetLowering.h
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  lib/CodeGen/SelectionDAG/TargetLowering.cpp
  lib/Target/AArch64/AArch64ISelLowering.cpp
  lib/Target/AArch64/AArch64ISelLowering.h
  test/CodeGen/AArch64/bitreverse.ll
  test/CodeGen/AArch64/optimize-imm.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D5591.71888.patch
Type: text/x-patch
Size: 12326 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160919/d2296188/attachment.bin>


More information about the llvm-commits mailing list