projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
55aaa98
)
remove redundant check: optForSize() includes a check for the minsize attribute;...
author
Sanjay Patel
<spatel@rotateright.com>
Mon, 7 Dec 2015 19:13:40 +0000
(19:13 +0000)
committer
Sanjay Patel
<spatel@rotateright.com>
Mon, 7 Dec 2015 19:13:40 +0000
(19:13 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@254925
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Target/X86/X86OptimizeLEAs.cpp
patch
|
blob
|
history
diff --git
a/lib/Target/X86/X86OptimizeLEAs.cpp
b/lib/Target/X86/X86OptimizeLEAs.cpp
index 9171786707d8c1b826825852492cdec40cc7d15d..da83c8ad824803b9e258a76741aed89675fb702e 100644
(file)
--- a/
lib/Target/X86/X86OptimizeLEAs.cpp
+++ b/
lib/Target/X86/X86OptimizeLEAs.cpp
@@
-294,11
+294,9
@@
bool OptimizeLEAPass::removeRedundantAddrCalc(
bool OptimizeLEAPass::runOnMachineFunction(MachineFunction &MF) {
bool Changed = false;
- bool OptSize = MF.getFunction()->optForSize();
- bool MinSize = MF.getFunction()->optForMinSize();
// Perform this optimization only if we care about code size.
- if (!
OptSize && !MinSize
)
+ if (!
MF.getFunction()->optForSize()
)
return false;
MRI = &MF.getRegInfo();