[llvm-bugs] [Bug 31034] New: Refactoring lib/IR/AutoUpgrade.cpp file.
via llvm-bugs
llvm-bugs at lists.llvm.org
Wed Nov 16 01:28:53 PST 2016
https://llvm.org/bugs/show_bug.cgi?id=31034
Bug ID: 31034
Summary: Refactoring lib/IR/AutoUpgrade.cpp file.
Product: new-bugs
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: new bugs
Assignee: unassignedbugs at nondot.org
Reporter: ayman.musa at intel.com
CC: llvm-bugs at lists.llvm.org
Classification: Unclassified
llvm::UpgradeIntrinsicCall() function in lib/IR/AutoUpgrade.cpp source file
checks if the IR includes an old intrinsic and replaces it with the upgraded
IR.
The checks are implemented by a long "if else" sequence which some compilers
complain about when it gets too long (For example, Microsoft C++ compiler will
accept up to 127 if-else statements).
A refactoring to this "structure" should be considered as an effort to reduce
the use of llvm x86 specific intrinsics is being initiated, and as a result
many new cases will be added to the same control flow in the future.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20161116/52684020/attachment.html>
More information about the llvm-bugs
mailing list