[PATCH] D64090: [Codegen][X86][AArch64][ARM][PowerPC] Inc-of-add vs sub-of-not (PR42457)
Roman Lebedev via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jul 2 13:13:47 PDT 2019
lebedev.ri marked an inline comment as done.
lebedev.ri added inline comments.
================
Comment at: test/CodeGen/ARM/inc-of-add.ll:528
+; THUMB6-NEXT: sbcs r3, r4
+; THUMB6-NEXT: pop {r4, r5, r7, pc}
;
----------------
efriedma wrote:
> Before we treat vectors differently from scalars, should we check the vector is actually legal?
>
> In this case, we actually save an instruction (Thumb1 doesn't support adc with immediate), but that seems unintended.
I have tried `VT.isScalarInteger() || !isTypeLegal(VT);` on ARM and PPC, and the diff says it's worse in total.
Could you be a bit more specific as to what you envision?
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D64090/new/
https://reviews.llvm.org/D64090
More information about the llvm-commits
mailing list