projects
/
oota-llvm.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Revert the ConstantInt constructors back to their 2.5 forms where possible, thanks...
[oota-llvm.git]
/
lib
/
Transforms
/
Scalar
/
LoopUnswitch.cpp
diff --git
a/lib/Transforms/Scalar/LoopUnswitch.cpp
b/lib/Transforms/Scalar/LoopUnswitch.cpp
index 100b8c7cfb945f22281bdab1c5fa3bb43d3219dd..efe246ef5dbdb89e9d09d97d8dcd3aa207c2c062 100644
(file)
--- a/
lib/Transforms/Scalar/LoopUnswitch.cpp
+++ b/
lib/Transforms/Scalar/LoopUnswitch.cpp
@@
-911,7
+911,7
@@
void LoopUnswitch::RewriteLoopBodyWithConditionConstant(Loop *L, Value *LIC,
if (IsEqual)
Replacement = Val;
else
- Replacement = Con
text.getConstantIn
t(Type::Int1Ty,
+ Replacement = Con
stantInt::ge
t(Type::Int1Ty,
!cast<ConstantInt>(Val)->getZExtValue());
for (unsigned i = 0, e = Users.size(); i != e; ++i)