diff options
author | Alexey Bataev <a.bataev@hotmail.com> | 2018-05-21 17:46:34 +0000 |
---|---|---|
committer | Alexey Bataev <a.bataev@hotmail.com> | 2018-05-21 17:46:34 +0000 |
commit | 7c9ad0db3dc8c9b4d14de4e0c0315a49a120b2bd (patch) | |
tree | 7584c5169812235a4269719adbc818ef24eda078 /llvm/lib/MC/ELFObjectWriter.cpp | |
parent | bcf611ab36ab52af0f45b8a057c4ebd947f28c91 (diff) | |
download | bcm5719-llvm-7c9ad0db3dc8c9b4d14de4e0c0315a49a120b2bd.tar.gz bcm5719-llvm-7c9ad0db3dc8c9b4d14de4e0c0315a49a120b2bd.zip |
[InstCombine] Fix PR37526: MinMax patterns produce an infinite loop.
Summary:
This patch fixes PR37526 by simplifying the newly generated LoadInst
instructions. If the pointer address is a bitcast from the pointer to
the NewType, we can just remove this extra bitcast instead of creating
the new one. This fixes the PR37526 + may speed up the whole compilation
process.
Reviewers: spatel, RKSimon, hfinkel
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D47144
llvm-svn: 332855
Diffstat (limited to 'llvm/lib/MC/ELFObjectWriter.cpp')
0 files changed, 0 insertions, 0 deletions