summaryrefslogtreecommitdiffstats
path: root/llvm/lib/MC/MCAssembler.cpp
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-05-26 20:37:03 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-05-26 20:37:03 +0000
commitb889fc987ef5bed917a6ab326f089bbc1a035008 (patch)
tree060cf4cb96126efef794d680fd0bf0d51d55b82b /llvm/lib/MC/MCAssembler.cpp
parent9d40ef162be910fc7011be0494fad36498cf4c75 (diff)
downloadbcm5719-llvm-b889fc987ef5bed917a6ab326f089bbc1a035008.tar.gz
bcm5719-llvm-b889fc987ef5bed917a6ab326f089bbc1a035008.zip
MC: When running with -mc-relax-all, we can eagerly relax instructions and avoid creating unnecessary MCInstFragments.
llvm-svn: 104736
Diffstat (limited to 'llvm/lib/MC/MCAssembler.cpp')
-rw-r--r--llvm/lib/MC/MCAssembler.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/llvm/lib/MC/MCAssembler.cpp b/llvm/lib/MC/MCAssembler.cpp
index 9c8268df2cb..59366565a6d 100644
--- a/llvm/lib/MC/MCAssembler.cpp
+++ b/llvm/lib/MC/MCAssembler.cpp
@@ -845,11 +845,8 @@ bool MCAssembler::LayoutOnce(MCAsmLayout &Layout) {
for (unsigned i = 0, e = Fixups.size(); i != e; ++i)
IF->getFixups().push_back(Fixups[i]);
- // Update the layout, and remember that we relaxed. If we are relaxing
- // everything, we can skip this step since nothing will depend on updating
- // the values.
- if (!getRelaxAll())
- Layout.UpdateForSlide(IF, SlideAmount);
+ // Update the layout, and remember that we relaxed.
+ Layout.UpdateForSlide(IF, SlideAmount);
WasRelaxed = true;
}
}
OpenPOWER on IntegriCloud