summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCParser/ELFAsmParser.cpp
diff options
context:
space:
mode:
authorHans Wennborg <hans@hanshq.net>2018-08-21 16:15:59 +0000
committerHans Wennborg <hans@hanshq.net>2018-08-21 16:15:59 +0000
commite71890b66db3ffd9b2eea247370c02a5e89475eb (patch)
treea7a2939c91846788f2ae3d08e0e663a948bbf99a /llvm/lib/MC/MCParser/ELFAsmParser.cpp
parent72bbf8c531bf69926fd08912dd6027d93639b213 (diff)
downloadbcm5719-llvm-e71890b66db3ffd9b2eea247370c02a5e89475eb.tar.gz
bcm5719-llvm-e71890b66db3ffd9b2eea247370c02a5e89475eb.zip
Merging r339822:
------------------------------------------------------------------------ r339822 | carrot | 2018-08-16 00:08:26 +0200 (Thu, 16 Aug 2018) | 12 lines [CodeGenPrepare] Add BothExtension type to PromotedInsts This patch fixes PR38125. Instruction extension types are recorded in PromotedInsts, it can be used later in function canGetThrough. If an instruction has two users with different extension types, it will be inserted into PromotedInsts two times in function promoteOperandForOther. The second one overwrites the first one, and the final extension type is wrong, later causes problem in canGetThrough. This patch changes the simple bool extension type to 2-bit enum type, add a BothExtension type in addition to zero/sign extension. When an user sees BothExtension for an instruction, it actually knows nothing about how that instruction is extended. Differential Revision: https://reviews.llvm.org/D49512 ------------------------------------------------------------------------ llvm-svn: 340294
Diffstat (limited to 'llvm/lib/MC/MCParser/ELFAsmParser.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud