wouldInstructionBeTriviallyDead is not expected to modify instruction,
so mark argument as const to allow its usage in other non-modifying instructions callers.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Paths
| Differential D157834
[Local] Mark Instruction argument of wouldInstructionBeTriviallyDead as const. NFC. ClosedPublic Authored by skatkov on Aug 13 2023, 10:50 PM.
Details Summary wouldInstructionBeTriviallyDead is not expected to modify instruction,
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 14 2023, 12:27 AM Closed by commit rG06dfc8400d2b: [Local] Mark Instruction argument of wouldInstructionBeTriviallyDead as const. (authored by skatkov). · Explain WhyAug 14 2023, 1:08 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 549816 llvm/include/llvm/Analysis/AssumeBundleQueries.h
llvm/include/llvm/Transforms/Utils/Local.h
llvm/lib/Analysis/AssumeBundleQueries.cpp
llvm/lib/Transforms/Utils/Local.cpp
|