Skip to content

Commit

Permalink
new fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
rlavaee committed Nov 16, 2018
1 parent 3cc7e19 commit 95125eb
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ echo "downloading base sources..."
if [ "$BINUTILS_STATE" -eq "0" ]; then
rm -rf ${BINUTILS_SRC_DIR}
echo "downloading binutils-2.30"
wget http://ftp.gnu.org/gnu/binutils/binutils-2.30.tar.xz -P ${SOURCE_DIR} -q
wget http://ftp.gnu.org/gnu/binutils/binutils-2.30.tar.xz -O ${SOURCE_DIR}/binutils-2.30.tar.xz -q
tar -xf ${SOURCE_DIR}/binutils-2.30.tar.xz -C ${SOURCE_DIR}
rm ${SOURCE_DIR}/binutils-2.30.tar.xz
BINUTILS_STATE=1
Expand Down
13 changes: 12 additions & 1 deletion patches/llvm/llvm.patch
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#NCSA-License
Index: include/llvm/CodeGen/AsmPrinter.h
===================================================================
--- include/llvm/CodeGen/AsmPrinter.h (revision 301135)
Expand Down Expand Up @@ -2829,3 +2828,15 @@ Index: lib/Support/BranchProbability.cpp
}

LLVM_DUMP_METHOD void BranchProbability::dump() const { print(dbgs()) << '\n'; }
Index: lib/Target/X86/X86AsmPrinter.h
===================================================================
--- lib/Target/X86/X86AsmPrinter.h (revision 301135)
+++ lib/Target/X86/X86AsmPrinter.h (working copy)
@@ -137,6 +137,7 @@
void EmitInstruction(const MachineInstr *MI) override;

void EmitBasicBlockEnd(const MachineBasicBlock &MBB) override {
+ AsmPrinter::EmitBasicBlockEnd(MBB);
SMShadowTracker.emitShadowPadding(*OutStreamer, getSubtargetInfo());
}

5 changes: 2 additions & 3 deletions scripts/code_layout.rb
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,6 @@ def merge_all_chains
end
@dso.functions.each do |func|
@in_edges[func].each do |pred_func,c|
func_chain = @hot_chain_map[func]
Expand Down Expand Up @@ -815,7 +814,7 @@ def coalesce_cold(func)
if(!cold_chain_set.empty?)
chain_a = cold_chain_set.to_a
top_chain = chain_a.shift
top_chain = chain_a.inject(top_chain) do |res,chain|
top_chain = chain_a.inject(top_chain) do |res,chain|
res.concat(chain)
@all_chains.delete(chain)
res
Expand Down Expand Up @@ -1029,7 +1028,7 @@ def set_triple_chain_edge(lchain,mchain,rchain,elm,emr,distance_limit)
if(distance < distance_limit)
w = v[0] + v[1]
w *= (distance_limit - distance) if distance_limit.is_page?
ltr_w += w
ltr_w += w
end
end
end
Expand Down
2 changes: 2 additions & 0 deletions scripts/profile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@

require 'fileutils'

LLVM_BIN = File.join(File.expand_path(File.dirname(__FILE__)), "..", "build", "llvm", "bin", "llvm-nm")

class Profile < Hash
attr_reader :prof_dso
attr_accessor :updated
Expand Down

0 comments on commit 95125eb

Please sign in to comment.