[PATCH] D71799: [Attributor] AAUndefinedBehavior: Check for branches on undef value.
Stefanos Baziotis via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Dec 24 14:29:37 PST 2019
baziotis marked an inline comment as done.
baziotis added inline comments.
================
Comment at: llvm/lib/Transforms/IPO/Attributor.cpp:2095
+ bool isKnownToCauseUB(Instruction *I) const override {
+ return (KnownUBInsts.count(I) != 0);
+ }
----------------
jdoerfert wrote:
> Just count, no need to check it against 0.
Ok, I just did it because otherwise there's an implicit cast to `bool` and well.. whatever, let me change it. :P
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D71799/new/
https://reviews.llvm.org/D71799
More information about the llvm-commits
mailing list