diff options
author | Juergen Ributzka <juergen@apple.com> | 2014-06-12 23:27:57 +0000 |
---|---|---|
committer | Juergen Ributzka <juergen@apple.com> | 2014-06-12 23:27:57 +0000 |
commit | 4eddf94a147737e0b3b6e565a7eb283fc11bbf85 (patch) | |
tree | 26708d7b924d9e0c7f789df5f817947e4803f6ae /include/llvm | |
parent | cccc317ee06643fd6cb8dff4bdb93a687c0e4fb3 (diff) | |
download | llvm-4eddf94a147737e0b3b6e565a7eb283fc11bbf85.tar.gz llvm-4eddf94a147737e0b3b6e565a7eb283fc11bbf85.tar.bz2 llvm-4eddf94a147737e0b3b6e565a7eb283fc11bbf85.tar.xz |
[FastISel][X86] Add MachineMemOperand to load/store instructions.
This commit adds MachineMemOperands to load and store instructions. This allows
the peephole optimizer to fold load instructions. Unfortunatelly the peephole
optimizer currently doesn't run at -O0.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@210858 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/CodeGen/FastISel.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/FastISel.h b/include/llvm/CodeGen/FastISel.h index 7d9e207838..c7ec6a024b 100644 --- a/include/llvm/CodeGen/FastISel.h +++ b/include/llvm/CodeGen/FastISel.h @@ -377,6 +377,9 @@ protected: /// Test whether the given value has exactly one use. bool hasTrivialKill(const Value *V) const; + /// \brief Create a machine mem operand from the given instruction. + MachineMemOperand *createMachineMemOperandFor(const Instruction *I) const; + private: bool SelectBinaryOp(const User *I, unsigned ISDOpcode); |