This is a simple patch that adds constant folding for freeze
instruction.
IIUC, it isn't needed to update ConstantFold.cpp because there is no freeze
constexpr.
Paths
| Differential D84597
[ConstantFolding] Fold freeze if it is never undef or poison ClosedPublic Authored by aqjune on Jul 26 2020, 5:12 AM.
Details Summary This is a simple patch that adds constant folding for freeze IIUC, it isn't needed to update ConstantFold.cpp because there is no freeze
Diff Detail
Unit TestsFailed
Event Timelineaqjune added a parent revision: D84596: [ValueTracking] Instruction::isBinaryOp should be used for constexprs.Jul 26 2020, 5:13 AM aqjune added a child revision: D84598: [JumpThreading] Add a basic support for freeze instruction.Jul 26 2020, 5:37 AM Comment Actions LGTM
This revision is now accepted and ready to land.Jul 26 2020, 5:46 AM Closed by commit rG32088f4f7fc7: [ConstantFolding] Fold freeze if it is never undef or poison (authored by aqjune). · Explain WhyJul 26 2020, 5:55 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 280721 llvm/lib/Analysis/ConstantFolding.cpp
llvm/test/Analysis/ConstantFolding/freeze.ll
|
clang-format not found in user's PATH; not linting file.