mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-06-15 05:24:01 +00:00
Hopefully, the final fix for `[Pp]ropogate'.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6251 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@ -10,13 +10,13 @@
|
||||
#include "llvm/ConstantHandling.h"
|
||||
|
||||
//===----------------------------------------------------------------------===//
|
||||
// Local constant propogation...
|
||||
// Local constant propagation...
|
||||
//
|
||||
|
||||
// ConstantFoldInstruction - If an instruction references constants, try to fold
|
||||
// them together...
|
||||
//
|
||||
bool doConstantPropogation(BasicBlock::iterator &II) {
|
||||
bool doConstantPropagation(BasicBlock::iterator &II) {
|
||||
if (Constant *C = ConstantFoldInstruction(II)) {
|
||||
// Replaces all of the uses of a variable with uses of the constant.
|
||||
II->replaceAllUsesWith(C);
|
||||
|
Reference in New Issue
Block a user