[PATCH] D29404: [ValueTracking] emit a warning when we detect a conflicting assumption (PR31809)

Sanjay Patel via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 2 09:53:08 PST 2017


spatel updated this revision to Diff 86837.
spatel added a comment.

Patch updated:
Use DiagnosticInfoOptimizationFailure again because we do want a warning here.

But this isn't behaving the way I expected: shouldn't this show up as a "warning" rather than a "remark" and without needing to specify "-pass-remarks-missed=.*"? Ie, DS_Warning was specified in the creation of the underlying DiagnosticInfoIROptimization().

Sorry if I'm still mis-using the APIs...


https://reviews.llvm.org/D29404

Files:
  lib/Analysis/ValueTracking.cpp
  test/Transforms/InstSimplify/assume.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29404.86837.patch
Type: text/x-patch
Size: 4349 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170202/e93b8f79/attachment.bin>


More information about the llvm-commits mailing list