http://llvm.org/bugs/show_bug.cgi?id=16400

Jordan Rose <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|---                         |WONTFIX

--- Comment #3 from Jordan Rose <[email protected]> ---
The analyzer is conservative about global variables, even static global
variables, and assumes that any function calls it sees could change the
variable. IPA mitigates this a bit, and there are techniques we could add to
figure out that a particular function does /not/ touch a global, but in the
general case it's an unsolvable problem. I don't think we're going to be able
to fix this any time soon.

Workaround: cache the results of the check in a local variable.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to