[PATCH] D14632: [MachineSink] Don't break ImplicitNulls
Sanjoy Das via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 13 00:20:27 PST 2015
sanjoy added a comment.
I added a comment to the `ImplicitNullChecks` pass stating why it is difficult to work with loads sunk below control flow: http://reviews.llvm.org/rL253020
================
Comment at: lib/CodeGen/MachineSink.cpp:684
@@ +683,3 @@
+/// guarantee MI cannot possibly be used to do a null check.
+static bool IsLikelyImplicitNullCheck(MachineInstr *MI,
+ const TargetInstrInfo *TII,
----------------
Reading this on phabricator makes me feel that the naming here is not great -- I'll rename this function to `SinkingPreventsImplicitNullCheck` tomorrow.
http://reviews.llvm.org/D14632
More information about the llvm-commits
mailing list