diff options
author | James Clarke <jrtc27@jrtc27.com> | 2020-02-18 13:21:23 +0000 |
---|---|---|
committer | James Clarke <jrtc27@jrtc27.com> | 2020-02-18 13:21:26 +0000 |
commit | b3cd44f80b8d6de76d41f1c78241d782c77cd193 (patch) | |
tree | 0b4819c94db98a386d7ad454b448794500debdf9 /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | d6fe253653b7e760f94ca21d0a7ebbfeeee28777 (diff) | |
download | llvm-b3cd44f80b8d6de76d41f1c78241d782c77cd193.zip llvm-b3cd44f80b8d6de76d41f1c78241d782c77cd193.tar.gz llvm-b3cd44f80b8d6de76d41f1c78241d782c77cd193.tar.bz2 |
Use SETNE directly rather than SUB/SETNE 0 for stack guard check
Summary:
Backends should fold the subtraction into the comparison, but not all
seem to. Moreover, on targets where pointers are not integers, such as
CHERI, an integer subtraction is not appropriate. Instead we should just
compare the two pointers directly, as this should work everywhere and
potentially generate more efficient code.
Reviewers: bogner, lebedev.ri, efriedma, t.p.northover, uweigand, sunfish
Reviewed By: lebedev.ri
Subscribers: dschuff, sbc100, arichardson, jgravelle-google, hiraditya, aheejin, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D74454
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
0 files changed, 0 insertions, 0 deletions