mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2025-01-24 21:05:23 +00:00
Make SCEV print <nsw><nuw> for Add/MulExpr.
llvm-svn: 145364
This commit is contained in:
parent
a033165cf9
commit
975fe6c09b
@ -188,6 +188,14 @@ void SCEV::print(raw_ostream &OS) const {
|
||||
OS << OpStr;
|
||||
}
|
||||
OS << ")";
|
||||
switch (NAry->getSCEVType()) {
|
||||
case scAddExpr:
|
||||
case scMulExpr:
|
||||
if (NAry->getNoWrapFlags(FlagNUW))
|
||||
OS << "<nuw>";
|
||||
if (NAry->getNoWrapFlags(FlagNSW))
|
||||
OS << "<nsw>";
|
||||
}
|
||||
return;
|
||||
}
|
||||
case scUDivExpr: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user