[PATCH] D21299: [Codegen Prepare] Swap commutative binops before splitting branch condition.

Balaram Makam via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 17 15:13:11 PDT 2016


bmakam updated this revision to Diff 61137.
bmakam added a comment.

Although this is target independent, I have added a feature flag to guard this change. It is currently enabled only for Kryo because I tested only on this target. If this is profitable for other targets, we can add the feature flag to those targets.

Renato, is this along the lines of what you were suggesting?


http://reviews.llvm.org/D21299

Files:
  include/llvm/Target/TargetLowering.h
  lib/CodeGen/CodeGenPrepare.cpp
  lib/CodeGen/TargetLoweringBase.cpp
  lib/Target/AArch64/AArch64.td
  lib/Target/AArch64/AArch64ISelLowering.cpp
  lib/Target/AArch64/AArch64Subtarget.h
  test/CodeGen/AArch64/aarch64-codegen-prepare-constant-cmp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21299.61137.patch
Type: text/x-patch
Size: 9076 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160617/6d641413/attachment.bin>


More information about the llvm-commits mailing list