aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorZaara Syeda <syzaara@ca.ibm.com>2018-03-23 15:28:15 +0000
committerZaara Syeda <syzaara@ca.ibm.com>2018-03-23 15:28:15 +0000
commit65359936259224a1bdbc424445537d4f72f6180a (patch)
treeff00a665c9574fe95c889d2a62dd52d5e0b0dd08 /clang/lib/Frontend/CompilerInvocation.cpp
parentd189b596ae313c500fee974a261939658cd7136a (diff)
downloadllvm-65359936259224a1bdbc424445537d4f72f6180a.zip
llvm-65359936259224a1bdbc424445537d4f72f6180a.tar.gz
llvm-65359936259224a1bdbc424445537d4f72f6180a.tar.bz2
Re-commit: [MachineLICM] Add functions to MachineLICM to hoist invariant stores
This patch adds functions to allow MachineLICM to hoist invariant stores. Currently, MachineLICM does not hoist any store instructions, however when storing the same value to a constant spot on the stack, the store instruction should be considered invariant and be hoisted. The function isInvariantStore iterates each operand of the store instruction and checks that each register operand satisfies isCallerPreservedPhysReg. The store may be fed by a copy, which is hoisted by isCopyFeedingInvariantStore. This patch also adds the PowerPC changes needed to consider the stack register as caller preserved. Differential Revision: https://reviews.llvm.org/D40196 llvm-svn: 328326
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions