diff options
author | Alex Bradbury <asb@lowrisc.org> | 2017-11-14 19:16:08 +0000 |
---|---|---|
committer | Alex Bradbury <asb@lowrisc.org> | 2017-11-14 19:16:08 +0000 |
commit | 64e879745f2eca36bccb528e663189aee929e873 (patch) | |
tree | f052e55ffa02858169865dd46c46dd0288a3a195 /llvm/lib/CodeGen/CodeGen.cpp | |
parent | 55dcf5e586a470d13350fcf3b0b85993c73ce024 (diff) | |
download | llvm-64e879745f2eca36bccb528e663189aee929e873.zip llvm-64e879745f2eca36bccb528e663189aee929e873.tar.gz llvm-64e879745f2eca36bccb528e663189aee929e873.tar.bz2 |
Set hasSideEffects=0 for TargetOpcode::{CFI_INSTRUCTION,EH_LABEL,GC_LABEL,ANNOTATION_LABEL}
D37065 (committed as rL317674) explicitly set hasSideEffects for all
TargetOpcode::* instructions where it was inferred previously. This is a
follow-up to that patch, setting hasSideEffects=0 for CFI_INSTRUCTION,
EH_LABEL, GC_LABEL and ANNOTATION_LABEL. All LLVM tests pass after this
change.
This patch also modifies MachineInstr::isLabel returns true for a
TargetOpcode::ANNOTATION_LABEL, which ensures that an annotation label won't
be incorrectly considered safe to move.
Differential Revision: https://reviews.llvm.org/D39941
llvm-svn: 318174
Diffstat (limited to 'llvm/lib/CodeGen/CodeGen.cpp')
0 files changed, 0 insertions, 0 deletions