diff options
author | Aditya Nandakumar <aditya_nandakumar@apple.com> | 2019-01-16 00:40:37 +0000 |
---|---|---|
committer | Aditya Nandakumar <aditya_nandakumar@apple.com> | 2019-01-16 00:40:37 +0000 |
commit | 500e3ead9fa5cf27e8dcadae509ffbe93ee0d3bb (patch) | |
tree | cb33a52687ccae37e6014e6eff2c4e9d2837e40d /llvm/lib/CodeGen/MachineFunction.cpp | |
parent | e3226737ce014d6a8e5b5106f20303dd51048c6e (diff) | |
download | llvm-500e3ead9fa5cf27e8dcadae509ffbe93ee0d3bb.zip llvm-500e3ead9fa5cf27e8dcadae509ffbe93ee0d3bb.tar.gz llvm-500e3ead9fa5cf27e8dcadae509ffbe93ee0d3bb.tar.bz2 |
[GISel]: Add support for CSEing continuously during GISel passes.
https://reviews.llvm.org/D52803
This patch adds support to continuously CSE instructions during
each of the GISel passes. It consists of a GISelCSEInfo analysis pass
that can be used by the CSEMIRBuilder.
llvm-svn: 351283
Diffstat (limited to 'llvm/lib/CodeGen/MachineFunction.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineFunction.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineFunction.cpp b/llvm/lib/CodeGen/MachineFunction.cpp index 3ded00b..3495319 100644 --- a/llvm/lib/CodeGen/MachineFunction.cpp +++ b/llvm/lib/CodeGen/MachineFunction.cpp @@ -139,12 +139,12 @@ MachineFunction::MachineFunction(const Function &F, init(); } -void MachineFunction::handleInsertion(const MachineInstr &MI) { +void MachineFunction::handleInsertion(MachineInstr &MI) { if (TheDelegate) TheDelegate->MF_HandleInsertion(MI); } -void MachineFunction::handleRemoval(const MachineInstr &MI) { +void MachineFunction::handleRemoval(MachineInstr &MI) { if (TheDelegate) TheDelegate->MF_HandleRemoval(MI); } |