HomePhabricator

[Sink] Really really fix predicate in legality check

Authored by escha on Jan 11 2018, 1:28 PM.

Description

[Sink] Really really fix predicate in legality check

LoadInst isn't enough; we need to include intrinsics that perform loads too.

All side-effecting intrinsics and such are already covered by the isSafe
check, so we just need to care about things that read from memory.

D41960, originally from D33179.

llvm-svn: 322311

Details

Committed
eschaJan 11 2018, 1:28 PM
Parents
rG1ee1f49393af: [clang-tidy] Adding Fuchsia checker for statically constructed objects
Branches
Unknown
Tags
Unknown