📢 Too many exams? Don’t know which one suits you best? Book Your Free Expert 👉 call Now!


    Question

    If an expression `x = a + b` is computed, and later in

    the same basic block, `y = a + b` is computed, a compiler can apply which optimization?
    A Constant Propagation Correct Answer Incorrect Answer
    B Dead Code Elimination Correct Answer Incorrect Answer
    C Common Subexpression Elimination (CSE) Correct Answer Incorrect Answer
    D Loop Invariant Code Motion Correct Answer Incorrect Answer
    E Strength Reduction Correct Answer Incorrect Answer

    Solution

    Common Subexpression Elimination (CSE)

    Practice Next
    ask-question