OSDN Git Service

Add trace accessor methods, implement primitive if-conversion heuristic.
authorJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 7 Aug 2012 18:02:19 +0000 (18:02 +0000)
committerJakob Stoklund Olesen <stoklund@2pi.dk>
Tue, 7 Aug 2012 18:02:19 +0000 (18:02 +0000)
commit84ef6ba44394f983d985b02e328cbb2dd779e4b0
tree812ee61ad1b74460235e7a09aafd4d7f8da79249
parent3f5d1a2396915ebff20ce4f5d668ee5c839d1d91
Add trace accessor methods, implement primitive if-conversion heuristic.

Compare the critical paths of the two traces through an if-conversion
candidate. If the difference is larger than the branch brediction
penalty, reject the if-conversion. If would never pay.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161433 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/EarlyIfConversion.cpp
lib/CodeGen/MachineTraceMetrics.cpp
lib/CodeGen/MachineTraceMetrics.h