[PATCH] D30284: [loop-deletion] Improve analysis on calls when deleting a loop.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 22 18:45:59 PST 2017


efriedma added inline comments.


================
Comment at: test/Transforms/LoopDeletion/no-sideeffect-call.ll:26
+if.then:
+  %call = call float @sqrtf(float %x) #0
+  br label %if.end
----------------
mayHaveSideEffects isn't returning the expected result on your testcase because this call isn't marked nounwind.  (I suspect your patch isn't actually doing anything useful.)


https://reviews.llvm.org/D30284





More information about the llvm-commits mailing list