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:
6e8fbad
)
make it clear that this is always a zext
author
Chris Lattner
<sabre@nondot.org>
Thu, 30 Nov 2006 17:35:08 +0000
(17:35 +0000)
committer
Chris Lattner
<sabre@nondot.org>
Thu, 30 Nov 2006 17:35:08 +0000
(17:35 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@32044
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/Transforms/IPO/GlobalOpt.cpp
patch
|
blob
|
history
diff --git
a/lib/Transforms/IPO/GlobalOpt.cpp
b/lib/Transforms/IPO/GlobalOpt.cpp
index d6a8a85800cff1dcc1065b89a9844fe851da8e8d..af3bf6a887cba5360b6af21e2549398583bb7902 100644
(file)
--- a/
lib/Transforms/IPO/GlobalOpt.cpp
+++ b/
lib/Transforms/IPO/GlobalOpt.cpp
@@
-1177,7
+1177,7
@@
static void ShrinkGlobalToBoolean(GlobalVariable *GV, Constant *OtherVal) {
LoadInst *NLI = new LoadInst(NewGV, Name+".b", LI);
Value *NSI;
if (IsOneZero)
- NSI =
CastInst::createInferredCa
st(NLI, LI->getType(), Name, LI);
+ NSI =
new ZExtIn
st(NLI, LI->getType(), Name, LI);
else
NSI = new SelectInst(NLI, OtherVal, InitVal, Name, LI);
LI->replaceAllUsesWith(NSI);