[PATCH] D22933: DAG: avoid truncating a sign extended operand when test equality against zero

Weiming Zhao via llvm-commits llvm-commits at lists.llvm.org
Thu Jul 28 13:19:11 PDT 2016


weimingz created this revision.
weimingz added a subscriber: llvm-commits.
weimingz set the repository for this revision to rL LLVM.

When an operand is tested for EQ/NE against zero and the operand is sign extended, the truncate instruction is not needed.

Repository:
  rL LLVM

https://reviews.llvm.org/D22933

Files:
  lib/CodeGen/SelectionDAG/LegalizeIntegerTypes.cpp
  test/CodeGen/AArch64/arm64-shrink-wrapping.ll
  test/CodeGen/ARM/arm-shrink-wrapping.ll
  test/CodeGen/ARM/interrupt-attr.ll
  test/CodeGen/Thumb/thumb-shrink-wrapping.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D22933.65976.patch
Type: text/x-patch
Size: 4307 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160728/a0460dc2/attachment.bin>


More information about the llvm-commits mailing list