diff options
author | Hal Finkel <hfinkel@anl.gov> | 2014-09-02 06:23:54 +0000 |
---|---|---|
committer | Hal Finkel <hfinkel@anl.gov> | 2014-09-02 06:23:54 +0000 |
commit | 51b3fd1e28a4cbf9fb6fa6453fa6f30134d9288d (patch) | |
tree | 239762c592a2123089acbcb9c4ba4825ce739f0c /llvm/lib/MC/MCDisassembler/Disassembler.cpp | |
parent | d1a4ed6a7c333d102ea537a227dc72c6ba90b1df (diff) | |
download | llvm-51b3fd1e28a4cbf9fb6fa6453fa6f30134d9288d.zip llvm-51b3fd1e28a4cbf9fb6fa6453fa6f30134d9288d.tar.gz llvm-51b3fd1e28a4cbf9fb6fa6453fa6f30134d9288d.tar.bz2 |
[PowerPC] Guard against illegal selection of add for TargetConstant operands
r208640 was reverted because it caused a self-hosting failure on ppc64. The
underlying cause was the formation of ISD::ADD nodes with ISD::TargetConstant
operands. Because we have no patterns for 'add' taking 'timm' nodes, these are
selected as r+r add instructions (which is a miscompile). Guard against this
kind of behavior in the future by making the backend crash should this occur
(instead of silently generating invalid output).
llvm-svn: 216897
Diffstat (limited to 'llvm/lib/MC/MCDisassembler/Disassembler.cpp')
0 files changed, 0 insertions, 0 deletions