HomePhabricator

[Attributor][FIX] Do not apply h2s for arbitrary mallocs

Authored by jdoerfert on Oct 12 2019, 8:54 PM.

Description

[Attributor][FIX] Do not apply h2s for arbitrary mallocs

H2S did apply to mallocs of non-constant sizes if the uses were OK. This
is now forbidden through reording of the "good" and "bad" cases in the
conditional.

llvm-svn: 374698

Details

Committed
jdoerfertOct 12 2019, 8:54 PM
Parents
rG9daf51910b11: [Attributor][FIX] Add missing function declaration in test case
Branches
Unknown
Tags
Unknown