[Attributor] Make non-side-effect inline asm be "no-call"
authorJohannes Doerfert <johannes@jdoerfert.de>
Tue, 4 Oct 2022 14:39:45 +0000 (07:39 -0700)
committerJohannes Doerfert <johannes@jdoerfert.de>
Tue, 13 Dec 2022 04:55:35 +0000 (20:55 -0800)
commit12e14bc42b1500b4a9b02357dea7c6158a0b714d
treeb17244fb338b3a556ef339ae663cb48a9f1bdc98
parentc6e83ddb37aff90b3fff2deb8605bc0adc54b393
[Attributor] Make non-side-effect inline asm be "no-call"

If we have inline asm with side effects we assume any function might be
called. For non-side-effect asm we now assume no function is called.
llvm/lib/Transforms/IPO/AttributorAttributes.cpp
llvm/test/Transforms/Attributor/nosync.ll
llvm/test/Transforms/Attributor/reachability.ll