[PATCH] D47475: [Local] Make KDominatesJ required for combineMetadata.

Florian Hahn via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 18 09:06:11 PDT 2018


fhahn added a comment.

ping. The langref now says the following about !nonnull loads: `The existence of the !nonnull metadata on the instruction tells the optimizer that the value loaded is known to never be null. If the value is null at runtime, the behavior is undefined.`. With the value being null at runetime being UB, keeping nonnull on dominating loads should be ok IIUC.


https://reviews.llvm.org/D47475





More information about the llvm-commits mailing list