diff options
author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2017-02-01 02:49:25 +0000 |
---|---|---|
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2017-02-01 02:49:25 +0000 |
commit | 15e50b510ee162cafc0578d86b6addd50744932f (patch) | |
tree | 479db89a0880029e6e2b80900234da0b289b19df /llvm/lib/CodeGen/MachineScheduler.cpp | |
parent | fd350a3b4f1b1be71d47ad581cdcb04cc180f0cb (diff) | |
download | llvm-15e50b510ee162cafc0578d86b6addd50744932f.zip llvm-15e50b510ee162cafc0578d86b6addd50744932f.tar.gz llvm-15e50b510ee162cafc0578d86b6addd50744932f.tar.bz2 |
[ImplicitNullCheck] NFC isSuitableMemoryOp cleanup
Summary:
isSuitableMemoryOp method is repsonsible for verification
that instruction is a candidate to use in implicit null check.
Additionally it checks that base register is not re-defined before.
In case base has been re-defined it just returns false and lookup
is continued while any suitable instruction will not succeed this check
as well. This results in redundant further operations.
So when we found that base register has been re-defined we just
stop.
Patch by Serguei Katkov!
Reviewers: reames, sanjoy
Reviewed By: sanjoy
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D29119
llvm-svn: 293736
Diffstat (limited to 'llvm/lib/CodeGen/MachineScheduler.cpp')
0 files changed, 0 insertions, 0 deletions