[PATCH] D90606: [llvm][AArch64] Check the sign bit of a sign extended value before sign extension.

Francesco Petrogalli via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 3 02:22:58 PST 2020


fpetrogalli updated this revision to Diff 302522.
fpetrogalli added a comment.

Thank you for the review @resistor. I have implememted the
optimization also looking through a `sign_extend` node. Tests to cover
this have been added, but only for extending `i32` into `i64` because
illegal values like `i8` are always sign extended inreg.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D90606/new/

https://reviews.llvm.org/D90606

Files:
  llvm/lib/Target/AArch64/AArch64ISelLowering.cpp
  llvm/test/CodeGen/AArch64/check-sign-bit-before-extension.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D90606.302522.patch
Type: text/x-patch
Size: 6107 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20201103/ef117b57/attachment.bin>


More information about the llvm-commits mailing list