[PATCH] D19210: Teach poison value tracking that certain calls always terminate
David Majnemer via llvm-commits
llvm-commits at lists.llvm.org
Sun Apr 17 23:47:52 PDT 2016
majnemer added a subscriber: majnemer.
================
Comment at: lib/Analysis/ValueTracking.cpp:3289
@@ +3288,3 @@
+ // assumption (e.g. we will DCE readnone and readonly calls).
+ return CS.doesNotThrow() && CS.onlyReadsMemory();
+
----------------
Couldn't this just be `!I->mayHaveSideEffects()` ?
http://reviews.llvm.org/D19210
More information about the llvm-commits
mailing list