[PATCH] D57121: [ARM] Use sub for negative offset load/store in thumb1
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Jan 23 15:01:17 PST 2019
efriedma added a comment.
Can you give an example where this transform helps for ldrsb/ldrsh?
================
Comment at: lib/Target/ARM/ARMISelDAGToDAG.cpp:1043
+ if (auto C = dyn_cast<ConstantSDNode>(N.getOperand(1)))
+ return C->getSExtValue() < 0;
+
----------------
Does the actual value matter here? If we're going to generate a constant pool load, this doesn't seem profitable.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D57121/new/
https://reviews.llvm.org/D57121
More information about the llvm-commits
mailing list