diff options
author | Volkan Keles <vkeles@apple.com> | 2019-08-15 23:45:45 +0000 |
---|---|---|
committer | Volkan Keles <vkeles@apple.com> | 2019-08-15 23:45:45 +0000 |
commit | 0ae6006bee0e77bacce41e5a0c661ad67ea1073d (patch) | |
tree | d4d6b4c319c311687208cbcfa5050f1385cf9f50 /llvm/lib/CodeGen/GlobalISel/CSEInfo.cpp | |
parent | 9b9a3084521b7813ad94b5852a886a1b2c8493f0 (diff) | |
download | bcm5719-llvm-0ae6006bee0e77bacce41e5a0c661ad67ea1073d.tar.gz bcm5719-llvm-0ae6006bee0e77bacce41e5a0c661ad67ea1073d.zip |
[GlobalISel] CSEMIRBuilder: Add support for G_GEP
Summary:
This patch adds G_GEP to `shouldCSEOpc` so that it can be CSEd. It also refactors
`translateGetElementPtr` by replacing `createGenericVirtualRegister` calls with types.
Reviewers: aditya_nandakumar, arsenm, dsanders, paquette, aemerson
Reviewed By: aditya_nandakumar
Subscribers: wdng, rovka, javed.absar, hiraditya, Petar.Avramovic, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D66316
llvm-svn: 369070
Diffstat (limited to 'llvm/lib/CodeGen/GlobalISel/CSEInfo.cpp')
-rw-r--r-- | llvm/lib/CodeGen/GlobalISel/CSEInfo.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/GlobalISel/CSEInfo.cpp b/llvm/lib/CodeGen/GlobalISel/CSEInfo.cpp index 9f81b0af483..7d9d812d34b 100644 --- a/llvm/lib/CodeGen/GlobalISel/CSEInfo.cpp +++ b/llvm/lib/CodeGen/GlobalISel/CSEInfo.cpp @@ -52,6 +52,7 @@ bool CSEConfigFull::shouldCSEOpc(unsigned Opc) { case TargetOpcode::G_ANYEXT: case TargetOpcode::G_UNMERGE_VALUES: case TargetOpcode::G_TRUNC: + case TargetOpcode::G_GEP: return true; } return false; |